InsertOoxml() method of content control is not working for web version of word document.

Sourav 5 Reputation points
2023-03-29T19:26:10.3466667+00:00

InsertOoxml() method of contentControl word office js api is not working in online Web version . Tried to get the ooxml of a sample chart from desktop and tried to run the same valid ooxml in web version using insertOoxml() and its throwing RichApi error . Attaching the json of web version script lab error

{

"name": "RichApi.Error",

"code": "GeneralException",

"traceMessages": [],

"innerError": null,

"debugInfo": {

"code": "GeneralException",

"message": "unknown",

"errorLocation": "Body.insertOoxml",

"statement": "var insertOoxml = body.insertOoxml(...);",

"surroundingStatements": ["var root = context.root;", "var body = root.body;", "// Instantiate {body}", "// >>>>>", "var insertOoxml = body.insertOoxml(...);", "// <<<<<", "// Instantiate {insertOoxml}"],

"fullStatements": ["Please enable config.extendedErrorLogging to see full statements."]

},

"httpStatusCode": 500

}

Is the office.js word Api down ? because the same method was working until yesterday night.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
3,776 questions
Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
657 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,484 questions
0 comments No comments
{count} votes