Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Solution Export Failure

Posted on by 20

This post might be helpful for you in case your solution export is failing with below Error and Stack Trace

Error: System.InvalidOperationException: The specified node cannot be inserted as the valid
child of this node, because the specified node is the wrong type.

Stack Trace: 

at System.Xml.XmlNode.AppendChild(XmlNode newChild)
at System.Xml.XmlNode.AppendChild(XmlNode newChild)
at Microsoft.Crm.Tools.ImportExportPublish.SiteMapExportHandler.AppendAppModuleSiteMapXml(XmlDocument exportDocument, Guid siteMapId, String siteMapElementInnerXml)
at Microsoft.Crm.Tools.ImportExportPublish.SiteMapExportHandler.AppendXml(XmlDocument exportDocument, Guid siteMapId, String siteMapElementInnerXml)
at Microsoft.Crm.Tools.ImportExportPublish.SiteMapExportHandler.ExportItem(XmlDocument exportDocument, Guid siteMapId)
at Microsoft.Crm.Tools.ImportExportPublish.AppModuleSiteMapHandler.ExportItem(XmlDocument exportDocument)

What might be the reason?

  • Possible reason for this error might be that you are trying to export an empty site map

How can you fix it?

  • If you don't need empty site map to be exported as part of your solution and if none of the other component depends on it, then remove it from solution.
  • Or you can open the site map, Edit it by adding valid components, save and publish it before exporting the solution again.

  • Jisung Han Profile Picture
    Jisung Han on at
    RE: Solution Export Failure

    Thanks @Anshul Jain for sharing your valuable experience. It would be very helpful for admins who meet this issue in the future!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans