office office-add-in insert ooxml error

y jacky 0 Reputation points
2025-06-27T08:21:00.2233333+00:00

图片图片insertooxml error

Microsoft 365 and Office Development Office JavaScript API
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michelle-N 550 Reputation points Microsoft External Staff Moderator
    2025-06-27T11:58:14.91+00:00

    Hi @y jacky

    Thank you for reaching out to the Microsoft Q&A Forum.  

    I understand you are encountering an "Unspecified error" when using the insertOoxml method in your Word Add-in. Based on the error message and the location pointer (Line: 1, Column: 79), this issue may be caused by the OOXML string itself being invalid for an insertion operation. 

    As a forum moderator, I can help guide discussions and share insights based on public documentation and community knowledge. However, I don't have access to internal engineering resources or the ability to provide solutions from a product development perspective. I would like to refer you to some of the official articles below to see examples of correctly formatted OOXML for insertion and best practices: 

     Office Add-ins documentation: Insert OOXML:  

     Working with OOXML in Word Add-ins:  

     Office Common API error codes - Office Add-ins | Microsoft Learn 

     Word add-in tutorial - Office Add-ins | Microsoft Learn 

    Please update the plugin and Word: Check to see if the plug-in has been updated and if you have the latest version of Word. Outdated plug-ins and software may cause compatibility issues. 

    However, due to limitations in this area, I regret that I’m unable to assist you effectively. I would highly recommend contacting the official Microsoft Power Platform Community Forum Thread directly. This is a platform that brings together experts and can give you a more in-depth perspective on the issue. 

    Thank you for your patiences and I truly hope it gets resolved for you soon 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".      

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.