web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Solution Export Failure

(2) ShareShare
ReportReport
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.

I have the same question (0)
  • Jisung Han Profile Picture
    on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 46 Most Valuable Professional

#2
Pallavi Phade Profile Picture

Pallavi Phade 33

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 28 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans