cancel
Showing results for 
Search instead for 
Did you mean: 

Category Product relation Sync is not changing the sync icon from red to green(Hybris 1811)

S0023095638
Explorer
0 Kudos

Hi All,

I am seeing an issue when trying to sync a product by adding a super category. Here is the steps that explain my scenario.

1. Make sure Category A and Product A are in sync between staged and online versions. So the sync icon will be green for both Category and Product.

2. Go to Product A and add Category A as super category for this product on staged catalog version.

3. Now the sync icon got changed to red for both Product A and Category A as there are changed available between staged and online versions.

4. Sync the Product A from staged to online and now the super category will be synced to online version of Product A which in turn makes the sync icon for Product A to green from red.

5. But the sync icon for Category A is still showing as red even though the Category A online version is now having Product A under the included products after the Product A is synced from staged to Online.

Observation: Even though the data is synced from staged to online versions and when I compare both staged and online versions for Category there are no differences but still the sync icon is showing as red instead of green.

I verified the similar behavior for CategoryMedia relation also.

Please help me in providing the solution to change the sync icon from Red to Green for the category mentioned in the scenaro above.

Thanks,

Sandeep.

Accepted Solutions (0)

Answers (1)

Answers (1)

S0023095638
Explorer

Seems this functionality is working correctly and the below explanation will justify. Hoping someone who are facing the same situation can help.

I think icon of Category A should be red because Product A has synced from stage to online and turn green. But this operation is not acknowledged by the parent category, in this case, Category A. Only a change of its product should not decide category's status.

1. What if another Product B is also added in Category A?

2. What if there are some other modifications on Category A along with the included products like a description change or name change?

3. What if Product A is added and removed before sync?

In all the above 3 points, it is not correct to update the sync icon to Green when Product A is synced.

Although it's the same content of description(in point#3), but it's not recognized by Hybris. There is change done for product/category of stage, sync operation is needed to make icon turn from red to green.

Once a product is synchronized with a certain synchronization , that timestamp is stored with that rule. Consequently, the product is considered up-to-date in the target catalog. Unless the product's last change date changes, that product will not be synchronized any more with that rule, even if the rule was edited. The idea behind this is that the platform can avoid synchronizing up-to-date products, which speeds up the synchronizing operation tremendously.

You may refer to the Help page below:

https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/1811/en-US/8c6a38118669101481bdf1303d70...

Especially the "No Changes in a Synchronized Catalog Version After the Synchronization Was Modified?" part will help you understand the logic.