Hi,
We upgraded a solution to 9.13.11 and we are getting the following exception when we try to use Deployment Tool to sync paragraphs. Is anyone experiencing the same?
Thanks, Mario
Hi,
We upgraded a solution to 9.13.11 and we are getting the following exception when we try to use Deployment Tool to sync paragraphs. Is anyone experiencing the same?
Thanks, Mario
Hi Mario,
I can't see the image you have pasted here. It links into your devops (https://dev.azure.com/dwna/...) and we can't access that.
Can you try again... or just post the exception and stack trace as plain text :)
/Morten
Hi Morten,
You are absolutey correct :) Here's the stack trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Dynamicweb.Deployment.DataItemProviders.Content.ItemHelper.ReplaceLinks(StoreItem storeItem, LinkReplacer replacer) +391
Dynamicweb.Deployment.DataItemProviders.Content.ItemHelper.ReplaceLinks(ItemStoreContainer container, LinkReplacer replacer) +97
Dynamicweb.Deployment.DataItemProviders.Content.ItemHelper.Serialize(Item item, LinkReplacer replacer) +153
Dynamicweb.Deployment.DataItemProviders.Content.ParagraphDataItemReader.ConvertToDataItem(Paragraph paragraph, DataItemLinkReplacer replacer) +1834
Dynamicweb.Deployment.DataItemProviders.Content.ParagraphDataItemReader.ReadItems(IEnumerable`1 ids) +835
Dynamicweb.Deployment.DataItemReader.ReadItemInfos(IEnumerable`1 ids) +46
Dynamicweb.Deployment.LocalDeploymentProvider.GetDataItemInfos(DataItemSelection selection) +71
Dynamicweb.Deployment.DeploymentProvider.CompareDataItems(DeploymentProvider destination, DataItemSelection selection) +124
Dynamicweb.Admin.DeploymentUIHelper.AddDataItemTypeWithComparisonData(Control box, DataGroup dataGroup, DataItemType dataItemType) +231
Dynamicweb.Admin.DeploymentUIHelper.MakeGroupBox(DataGroup dataGroup, IEnumerable`1 children, Boolean includeData, Boolean compare) +565
Dynamicweb.Admin.DeploymentUIHelper.MakeHierarchy(DataGroup group, Boolean includeData, Boolean compare) +102
Dynamicweb.Admin.Deployment.InitializeControls(Boolean compare) +122
Dynamicweb.Admin.Deployment.Page_Load(Object sender, EventArgs e) +1123
System.Web.UI.Control.OnLoad(EventArgs e) +107
System.Web.UI.Control.LoadRecursive() +89
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532
BR, Mario
Hi Mario,
It looks like you have a paragraph with a reference to an item type which no longer exists.
Try to find the paragraph which causes this error and fix it.
If the license includes access to health monitoring then you might be able to find the cause of this error by going to Monitoring > Health > Content data
Otherwise, you can do a manual check...
1) Query the database and see if you have any paragraphs with references to non-existing item types:
SELECT DISTINCT ParagraphItemType FROM Paragraph WHERE ParagraphItemType IS NOT NULL AND ParagraphItemType <> ''
... and also check item type references on pages and websites...
SELECT DISTINCT PageItemType FROM Page WHERE PageItemType IS NOT NULL AND PageItemType <> ''
SELECT DISTINCT AreaItemType FROM Area WHERE AreaItemType IS NOT NULL AND AreaItemType <> ''
SELECT DISTINCT AreaItemTypePageProperty FROM Area WHERE AreaItemTypePageProperty IS NOT NULL AND AreaItemTypePageProperty <> ''
2) Check your item type definitions in /Files/System/Items and see if they have references to non-existing item types (item inheritance, item fields, list fields).
We can try to provide more useful messages when errors occur in deployment providers.
Best regards,
Morten
You must be logged in to post in the forum