meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sap_hybris_commerce:cms_cockpit_wcms:common_reasons_of_synchronisation_failures [2019/12/18 20:18]
127.0.0.1 external edit
sap_hybris_commerce:cms_cockpit_wcms:common_reasons_of_synchronisation_failures [2020/03/05 15:21] (current)
Antonio Robirosa check if sync is active
Line 60: Line 60:
  
 In one project the synchronisation created duplicate —same code or uid— medias, contentslots and navigation nodes. Although the multi-threading in the synchronization was turned off((property catalog.sync.workers)),​ the system kept generating duplicate medias. The cause of the error is still unknown but **unique indexes for the column catalogVersion and code/uid** on the tables medias, contentslot,​ cmscomponent,​ cmsnavigationnode,​ cmsnavigationentry,​ slotsfortemplate and slotsforpage solved the issue. After the creation of the index no error message or stack trace is shown in the logs, so further investigation of the issue couldn'​t be done. In one project the synchronisation created duplicate —same code or uid— medias, contentslots and navigation nodes. Although the multi-threading in the synchronization was turned off((property catalog.sync.workers)),​ the system kept generating duplicate medias. The cause of the error is still unknown but **unique indexes for the column catalogVersion and code/uid** on the tables medias, contentslot,​ cmscomponent,​ cmsnavigationnode,​ cmsnavigationentry,​ slotsfortemplate and slotsforpage solved the issue. After the creation of the index no error message or stack trace is shown in the logs, so further investigation of the issue couldn'​t be done.
 +
 +==== Tips ====
 +  * If you a validate interceptor is throwing exceptions during the synchronization,​ you can turn off its validation by checking if the following attribute is true:
 +<​code>​
 +this.getSessionService().getCurrentSession().getAttribute("​catalog.sync.active"​);​
 +</​code>​
  
 --Tested on SAP Hybris 5.6 --Tested on SAP Hybris 5.6