Has anyone ever experienced this error below on a Content Porter
import before?
After a successful export, I have been able to identify that these are component
and/or schema
specific, for example, I get the error on just one component within the entire folder I am working in that contains 50 other items, this is how I drilled down to the specific component
with a specific schema
throwing this error on import
I can also open, save and close, publish the component
correctly from the CM I exported out of and see no visible explanations of why it would have this error associated with it.
I think it is somehow schema
related, but everything is working fine in our lower environments. This is the 1st CP into a new TCM with this environment setup.
[Error] System.Xml.XPath.XPathException: Namespace prefix 'ns2' is not defined. at MS.Internal.Xml.XPath.CompiledXpathExpr.UndefinedXsltContext.LookupNamespace(String prefix) at MS.Internal.Xml.XPath.BaseAxisQuery.SetXsltContext(XsltContext context) at MS.Internal.Xml.XPath.FilterQuery.SetXsltContext(XsltContext input) at MS.Internal.Xml.XPath.MergeFilterQuery.SetXsltContext(XsltContext xsltContext) at MS.Internal.Xml.XPath.CompiledXpathExpr.SetContext(IXmlNamespaceResolver nsResolver) at System.Xml.XmlNode.SelectSingleNode(String xpath, XmlNamespaceManager nsmgr) at Tridion.ContentManager.ImportExport.ImportItemPreProcessor2013.PatchXLinks(IdentifiableObjectData item, PackageItem packageItem, IEnumerable`1 cutDependencies) at Tridion.ContentManager.ImportExport.ImportItemPreProcessor2013.ConvertToDataObject(PackageItem packageItem, IEnumerable`1 dependenciesToCut) at Tridion.ContentManager.ImportExport.ImportItemPreProcessor.GetDataObject(PackageItem packageItem, IEnumerable`1 dependenciesToCut, ImportAction action) at Tridion.ContentManager.ImportExport.AbortErrorHandler.Invoke[T](Func`2 function, LocalizableMessage message, Boolean retryAvailable, Boolean isCritical, UserReply additionalUserReplyOptions) at Tridion.ContentManager.ImportExport.Importer.GetImportItemData(WebDavUrl exportUrl, Dictionary`2 unresolvedDependencies, PackageItem packageItem, ImportAction importAction) at Tridion.ContentManager.ImportExport.Importer.ImportItem(WebDavUrl exportUrl, IList`1 dependentItemsChain, Dictionary`2 unresolvedDependencies, Boolean specialImport) at Tridion.ContentManager.ImportExport.Importer.ImportItems(IList`1 items, Boolean specialGroupImport) at Tridion.ContentManager.ImportExport.Importer.Import(String packageName) 2015/04/22 15:32:56 [Information] Transactional import failed at 4/22/2015 3:32:56 PM. No changes were committed to Tridion Content Manager.
I also notice that within the environment I am exporting from, the component
when I view source contains all namespaces
, whereas, the TCM I have done the import into, only contains one namespace
for all components
I open and check source on - below are just 2 examples had to remove opening tags on xml
Module xmlns="http://abc.xxxxx.com/example/somename/Module" xmlns:ns2="http://www.w3.org/1999/xlink" xmlns:ns3="http://www.tridion.com/ContentManager/5.0/Instance">
Module xmlns="http://abc.xxxxx.com/example/somename/Module">