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.

  • Jisung Han Profile Picture
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#2
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 53 Super User 2025 Season 1

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 32 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans