Posted on 03/11/2020 12:52:02
Thanks Nicolai.
At first I thought that it might be an item type that does not exist, but as stated above in the trace, it's referencing the basic item type "Paragraph" which definitely exists. Now after updating to newer version, the same error occured, but now on a different paragraph with a different item.
Trace:
2020-11-03 11:48:36.505: Error happened while executing operation! Area was not copied!. System.Exception: Failed to create the paragraph(1353) copy.
System.Exception: Failed to create copy of the paragraph(1353) item('Paragraph' with id '118').
System.NullReferenceException: Object reference not set to an instance of an object.
at Dynamicweb.Content.Paragraph.get_IsMaster()
at Dynamicweb.Content.ParagraphService.SaveParagraph(Paragraph paragraph)
at Dynamicweb.Content.Items.Queries.Repository.SynchronizePageStructure(Item currentItem, Boolean updateModificationDate, Item originalItem, ItemContext context)
at Dynamicweb.Content.Items.Queries.Repository.Update(IEnumerable`1 items, ItemContext context, Boolean synchronizePages)
at Dynamicweb.Content.Items.Queries.Repository.Update(ItemEntry item, ItemContext context)
at Dynamicweb.Content.Items.ItemEntry.Save(ItemContext context)
at Dynamicweb.Content.AreaService.CopyItem(Entity`1 source, String itemId, String itemType)
at Dynamicweb.Content.AreaService.CopyParagraphItem(Paragraph paragraph, Paragraph copiedParagraph, Dictionary`2 itemIndex)
--- End of inner exception stack trace ---
at Dynamicweb.Content.AreaService.CopyParagraphItem(Paragraph paragraph, Paragraph copiedParagraph, Dictionary`2 itemIndex)
at Dynamicweb.Content.AreaService.CopyParagraphs(CopyAreaInfo copyAreaInfo, Action`1 copyStatusFn, List`1 itemsToUpdateLinks, Dictionary`2 itemIndex, Dictionary`2 pageIndex, Dictionary`2 paragraphIndex, IEnumerable`1 paragraphs)
--- End of inner exception stack trace ---
at Dynamicweb.Content.AreaService.CopyParagraphs(CopyAreaInfo copyAreaInfo, Action`1 copyStatusFn, List`1 itemsToUpdateLinks, Dictionary`2 itemIndex, Dictionary`2 pageIndex, Dictionary`2 paragraphIndex, IEnumerable`1 paragraphs)
at Dynamicweb.Content.AreaService.CopyArea(CopyAreaInfo copyAreaInfo)
The trace above is my most recent try, and searching for the item in the DB shows that it's there