Posted on 27/02/2019 10:40:52
I think I found it. There's a faulty SQL statement in ecom.xml.aspx which causes the upgrade to package 2110 to fail and not create the DynamicStructures table which in turn breaks the PIM:
INSERT INTO DynamicStructures ([DynamicStructureTitle], [DynamicStructureQueryId], [DynamicStructureField1], [DynamicStructureSortDirection1], [DynamicStructureField2], [DynamicStructureSortDirection2], [DynamicStructureField3], [DynamicStructureSortDirection3], [DynamicStructureField4], [DynamicStructureSortDirection4], [DynamicStructureField5], [DynamicStructureSortDirection5] )
SELECT [DynamicStructureTitle], , [DynamicStructureQueryId], [DynamicStructureField1], [DynamicStructureSortDirection1], [DynamicStructureField2], [DynamicStructureSortDirection2], [DynamicStructureField3], [DynamicStructureSortDirection3], [DynamicStructureField4], [DynamicStructureSortDirection4], [DynamicStructureField5], [DynamicStructureSortDirection5] from [EcomProductDynamicStructures]
Note the double comma, that causes the insert to fail.