Hi guys,
I have some issues with one of our solutions.
The solution is running on DW 9.10.12.
I have set up a Staging version and a Production version and I am trying to move over data from Staging to Production.
Everything is fine except for the Paragraphs. When I try to transfer the paragraphs I get this error:
StackTrace: at Dynamicweb.Content.Items.Metadata.XmlWebsiteItemTypeLayouts..ctor(Int32 areaId) at Dynamicweb.Content.Area.get_ItemTypeLayouts() at Dynamicweb.Frontend.LayoutTemplateLocator.FindLayoutTemplateForPageItem(Page page) at Dynamicweb.Frontend.LayoutTemplateLocator.FindLayoutTemplateForPage(Page page) at Dynamicweb.Content.Page.get_Layout() at Dynamicweb.Content.Paragraph.get_Container() at Dynamicweb.Content.Data.ParagraphRepository.InsertParagraph(Paragraph paragraph, Boolean restoringParagraph) at Dynamicweb.Content.Data.ParagraphRepository.Save(Paragraph paragraph) at Dynamicweb.Content.ParagraphService.SaveParagraph(Paragraph paragraph) at Dynamicweb.Deployment.DataItemProviders.Content.ParagraphDataItemWriter.WriteItems(IEnumerable`1 dataItems) at Dynamicweb.Deployment.LocalDeploymentProvider.ImportDataGroups(Package package, Tracker tracker, Dictionary`2 dataGroupsByParentId, String parentId) at Dynamicweb.Deployment.LocalDeploymentProvider.ImportPackage(String id, Package package, Tracker tracker) at Dynamicweb.Deployment.DeploymentProvider.<>c__DisplayClass20_0.<DeployDataItemsFrom>b__0(Tracker tracker)
Unable to import. System.NullReferenceException: Object reference not set to an instance of an object. at Dynamicweb.Content.Items.Metadata.XmlWebsiteItemTypeLayouts..ctor(Int32 areaId) at Dynamicweb.Content.Area.get_ItemTypeLayouts() at Dynamicweb.Frontend.LayoutTemplateLocator.FindLayoutTemplateForPageItem(Page page) at Dynamicweb.Frontend.LayoutTemplateLocator.FindLayoutTemplateForPage(Page page) at Dynamicweb.Content.Page.get_Layout() at Dynamicweb.Content.Paragraph.get_Container() at Dynamicweb.Content.Data.ParagraphRepository.InsertParagraph(Paragraph paragraph, Boolean restoringParagraph) at Dynamicweb.Content.Data.ParagraphRepository.Save(Paragraph paragraph) at Dynamicweb.Content.ParagraphService.SaveParagraph(Paragraph paragraph) at Dynamicweb.Deployment.DataItemProviders.Content.ParagraphDataItemWriter.WriteItems(IEnumerable`1 dataItems) at Dynamicweb.Deployment.LocalDeploymentProvider.ImportDataGroups(Package package, Tracker tracker, Dictionary`2 dataGroupsByParentId, String parentId) at Dynamicweb.Deployment.LocalDeploymentProvider.ImportPackage(String id, Package package, Tracker tracker) at Dynamicweb.Deployment.DeploymentProvider.<>c__DisplayClass20_0.<DeployDataItemsFrom>b__0(Tracker tracker)
When I go on the production solution, on the Items section, I see this error message:
The log file does not provide enough information to fix the problem:
System.NullReferenceException: Object reference not set to an instance of an object.
at Dynamicweb.Content.Items.Activation.SqlBuilder.SelectTables()
at Dynamicweb.Content.Items.Activation.DatabaseBuilder.TableExists(ItemType item)
at Dynamicweb.Content.Items.Activation.DatabaseBuilder.SyncTable(ItemType item, IDbConnection conn)
at Dynamicweb.Content.Items.Activation.DatabaseBuilder.SyncTable(ItemType item)
at Dynamicweb.Content.Items.Activation.DatabaseFirstActivationWorkflow.Update(IEnumerable`1 items)
If I delete the Address ItemType, the deployment works. But I want to find a stable solution and avoid messing up the Items everytime I have to sync data.
Thank you,
Adrian