Importing Kentico site error

javier saenz asked on December 19, 2016 17:32

Hello,
I'm getting this error:
Message: [ImportProvider.ImportDocuments]: Cannot find parent node for page '/store/Checkout/Billing-and-Delivery(es-CR)'.

Exception type: System.Exception Stack Trace: at CMS.DocumentEngine.DocumentImport.ImportDocuments(SiteImportSettings settings, TranslationHelper th, List1& importedDocumentIDs, TreeProvider tree) at CMS.DocumentEngine.DocumentImport.ImportDocumentsData(SiteImportSettings settings, TranslationHelper th) at CMS.DocumentEngine.DocumentImport.ImportObjectTypeBefore(Object sender, ImportDataEventArgs e) at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler1 h, TArgs e) at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List1 list, TArgs e, Boolean important) at CMS.Base.AdvancedHandler2.RaiseBefore(TArgs e) at CMS.Base.AdvancedHandler2.RaiseBefore(TArgs e) at CMS.Base.AdvancedHandler2.StartEvent(TArgs e, Boolean allowEvent) at CMS.CMSImportExport.ImportProvider.ImportObjectType(SiteImportSettings settings, String objectType, Boolean siteObject, TranslationHelper th, ProcessObjectEnum processType, List`1 importedParentIds) at CMS.CMSImportExport.ImportProvider.ImportObjectsDataInternal(SiteImportSettings settings)

It happens when I try to import a site, I already remade the export file and i'm getting the same result. What can i do?

Recent Answers


Michal Samuhel answered on December 20, 2016 09:25

Hi Javier,

It looks like you have an orphaned node in CMS_Tree table which is causing trouble on the import. All nodes in CMS_Tree table must have existing parent node except for master page. Based on node path it would be one of the checkout pages.

Also you can use KInspector to check for any other DB inconsistency:

https://github.com/Kentico/KInspector

0 votesVote for this answer Mark as a Correct answer

javier saenz answered on December 20, 2016 16:00

Hi Michal,
I've been searching and checking my structure, looking for the missing parent node, but I see everything right, the only thing where I have doubts is in my checkout wizard page, on templates I checked "none" the nesting pages section, I don't know if i have to specify its parent page, knowing that my tree goes like store/checkout/billinganddelivery.aspx

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.