
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?
How can you fix it?
Thanks @Anshul Jain for sharing your valuable experience. It would be very helpful for admins who meet this issue in the future!