Custom xml file having issue after installation an power point addin

Ajay Kumar 0 Reputation points
2025-11-25T05:38:53.7066667+00:00

Hi,

I am facing an issue on some user machine where my installation gets quickly installed (which generally take time). After insalltion , once I opened the PowerPoint then it doesn't show my addin and also Addin file showing missing.

ERROR : error found in custom ui xml powerpoint addin the specified control type button is incompatable with the actual control type togglebutton id superscript

Microsoft 365 and Office | Development | Microsoft 365 Developer Program
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-25T05:39:01.2866667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The issue you're experiencing with the PowerPoint add-in seems to be related to the custom UI XML markup that you are using. The error message indicates that there is a mismatch between the specified control type (button) and the actual control type (toggle button) in your XML markup. This can cause the add-in not to load correctly.

    To resolve this issue, you should:

    1. Review your custom UI XML markup to ensure that the control types are correctly defined and match what is expected. Make sure that if you are using a toggle button, it is defined as such in your XML.
    2. Check for any other errors in the XML markup that could prevent the add-in from loading. If there are any errors, they need to be corrected.
    3. Enable error reporting in PowerPoint to get more detailed information about any issues with the add-in. You can do this by going to File > Options > Advanced, and under Developers, select Show add-in user interface errors.
    4. If the issue persists, consider reinstalling the add-in after ensuring that the XML markup is correct and that there are no compatibility issues.

    By following these steps, you should be able to troubleshoot and resolve the issue with your PowerPoint add-in.


    References:


  2. Michelle-N 8,840 Reputation points Microsoft External Staff Moderator
    2025-11-25T10:05:24.19+00:00

    Hi @Ajay Kumar

    Thank you for posting your question in Microsoft Q&A. 

    Based on the information you provided, I understand you're encountering an issue with a custom PowerPoint Add-in on some user machines. The installation finishes very quickly (which is unusual), and after installation, the add-in doesn't appear in PowerPoint. You are seeing a specific XML error: "custom UI XML, the type of control specified is not compatible with the actual type of control having the ID of superscript toggle button."

    The error message clearly indicates a mismatch in your add-in's Ribbon XML file. Specifically, you are trying to use the built-in control idMso="Superscript" (which is a toggle button in Office that turns superscript on/off), but you have defined it incorrectly in your XML.

    Because Office detects this invalid XML structure, it refuses to load the add-in's UI, which explains why the add-in is "missing" from the ribbon. The unusually fast installation suggests the installer might be skipping steps or failing silently during registration due to this validation error. Please try the following steps to fix the XML mismatch:

    1. Fix the Ribbon XML

    If you intend to use the built-in Superscript functionality as a toggle:

    Open your add-in's Ribbon XML file (e.g., Ribbon.xml or within your manifest) > Find the line referencing the Superscript control. It probably looks like this:

    <button idMso="Superscript" ... />
    Change it to:

    <toggleButton idMso="Superscript" ... />

    Keep other attributes (like label, imageMso) unless they are causing specific errors > Save, rebuild/repackage, and reinstall the add-in.

    Note on Callbacks: If you are implementing custom logic for this button:

    • You must provide a GetSuperscriptPressed(IRibbonControl control) callback that returns true/false (current state).
    • You must provide an OnSuperscriptToggle(IRibbonControl control, bool pressed) callback to handle state changes.
    • Make sure your callback names in the code match the XML declaration exactly.
    1. Check Add-in Status & Installation

    Since the installation was suspiciously fast, verify the add-in's state in PowerPoint:

    Go to File > Options > Add-ins > Look for your add-in in the "Inactive", "Disabled", or "Document-related" lists > If it is disabled, select "Disabled Items" in the Manage box and click "Go..." to re-enable it > If it is not in the list at all, the installation failed to register it correctly.

    1. Enable User Interface Errors

    To see diagnostic details when the add-in loads > Go to File > Options > Advanced > General > Check the box "Show add-in user interface errors". This will confirm if the XML fix worked.

    1. Check for Consistency

    Since you mentioned the issue happens on some machines, ensure all machines have the same Office version and necessary dependencies installed. Also, if your add-in is a .ppam file, check the file properties on the problematic machines and ensure "Unblock" is checked if present.

    I hope this information helps you resolve the issue!


    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.


Your answer

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