Find Duplicate CMSItem in Hybris/SAP Commerce Cloud.

 Find Duplicate CMSItem in Hybris/SAP Commerce Cloud.

Example Error:

20.10.29 15:04:36:209 ERROR Cannot use source catalog version IndiaContentCatalog/Online(8796093743705) for synchronization since it owns 1 duplicate CMSItem IDs
20.10.29 15:04:37:871 ERROR Aborted due to version validation error

SELECT {UID}, count(1) from {CMSItem} WHERE {CatalogVersion} = <CVPK> GROUP BY {UID} HAVING COUNT(1) > 1

Example Flexi Query:

replace placeholder <CVPK> with PK from error you are getting highlighted in RED.

Final Query:

SELECT {UID}, count(1) from {CMSItem} WHERE {CatalogVersion} = 8796093743705 GROUP BY {UID} HAVING COUNT(1) > 1

Comments

Popular posts from this blog

Hybris / SAP Commerce Cloud Groovy Scripting Job to Generate CSV/Excel Reports and copy to Commerce cloud Blob Storage

Emma's dream - a kids story - By Kavya

Hybris/ SAP commerce Cloud: Retry failed/not sent emails due to SMTP connection issue.