cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with product sync in hMC

Former Member
0 Likes
855

I have a problem syncing a few products in hMC: when right-clicking on a product in the search result list, and selecting "Start synchronisation" (context menu), the sync terminates with an error, while the sync is OK if I open that product and I click on the "Start Synchronization for this product" button.

It is this difference of behaviour in hMC that's hard to explain.

I compared all the options in the sync wizard in both cases and they are the same. The wizard starts a new CatalogVersionSyncCronJob and the cron jobs created by these two ways of starting a synchronisation look the same.

I don't see a problem with the product itself. After all, I can successfully sync it by opening it and using the "Start Synchronization for this product" button.

The sync error (when using the context menu) in the log is not very helpful. In the first pass the item is dumped. It is dumped in the 2nd pass too, hence there is 1 unfinished item.

 INFO   | jvm 1    | main    | 2018/08/20 17:16:56.198 | INFO  [0000EZEB::de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncJob] (0000EZEB) [CatalogVersionSyncJob] Starting synchronization ...
 INFO   | jvm 1    | main    | 2018/08/20 17:16:56.298 | INFO  [0000EZEB::de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncJob] (0000EZEB) [CatalogVersionSyncMaster] 1. pass, 0 (+0) of 0 items processed (0 %),  0.00 items/sec, 1 (+1, deadlocks:0) items dumped.
 INFO   | jvm 1    | main    | 2018/08/20 17:16:56.699 | INFO  [0000EZEB::de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncJob] (0000EZEB) [CatalogVersionSyncMaster] 2. pass, 0 (+0) of 1 items processed (0 %),  0.00 items/sec, 1 (+1, deadlocks:0) items dumped.
 INFO   | jvm 1    | main    | 2018/08/20 17:16:56.899 | INFO  [0000EZEB::de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncJob] (0000EZEB) [CatalogVersionSyncCronJob] comparing last dumps (1/8963039199262 vs 1/8963039297566) - this might take some time...
 INFO   | jvm 1    | main    | 2018/08/20 17:16:56.899 | INFO  [0000EZEB::de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncJob] (0000EZEB) [CatalogVersionSyncCronJob] done comparing last dumps - dumps are equal
 INFO   | jvm 1    | main    | 2018/08/20 17:16:56.899 | WARN  [0000EZEB::de.hybris.platform.catalog.jalo.synchronization.CatalogVersionSyncJob] (0000EZEB) [CatalogVersionSyncMaster] sync ended with 1 unfinished items - see last sync media for details

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

As mentioned in https://answers.sap.com/questions/12767414/strange-issues-synchronizing-categories-only-works.html the error goes away when I change this property:

 synchronization.legacy.mode=true
Marko_salonen
Contributor
0 Likes

There could be a dependcy that is not synchronized correctly. You could open the media for that synchjob and search for the PK in that and see what it is. Go to Cronjobs --> find the cronjob and open administration tab. There under dumpmedias you will find them all. When you open one of the dumpfiles the content will looks something like this : 8831536791582;8831542689822;9096379138667;mediaContainer;;false 8831536693278;8831542755358;9096379204203;mediaContainer;;false

Former Member
0 Likes

I looked at the dump file but the fact is that the product can be synced correctly by opening it in hMC and using the "Start Synchronization for this product" button.

My problem is similar to this one about categories:

https://answers.sap.com/questions/12767414/strange-issues-synchronizing-categories-only-works.html

I have the issue on Products rather than Categories but it looks exactly like the same thing.

Marko_salonen
Contributor
0 Likes

Did you identify the part that could not be synchronized?

Former Member
0 Likes

The dump shows a long list of attributes, but I'm not sure how this would help. If there's a problem with one, or many, of them, wouldn't it be the same when syncing it individually with the "Start Synchronization for this product" button?

8815722889217;8815765028865;;allDocuments,europe1Discounts,europe1Prices,europe1Taxes,features,productReferences,productReviews,untypedFeatures,variants...