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

[hybris-commerce-suite-6.5.0.12] :Error in Backoffice on commerce search :Category with code 'GLOBAL' not found! de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: Category with code 'GLOBAL' not found!

Former Member
0 Likes
581

While store dropdown change there is a piece of code in Hybris OOTB in commercesearchbackoffice extenstion in the class "CategoryTreeController.class[handleNewSite(SiteData newSiteData)] the below condition will always fail because the "newSiteData" & siteData" will not satisfy at any point.

if (this.siteData != null && StringUtils.equals(this.siteData.getSiteId(), newSiteData.getSiteId())) {

So the setCatalogId in the "category" object will be null always.So the next if condition will be satisfy and the setCatalogId is hard-coded to "GLOBAL" and setCategoryName =Global.PFB for the code

if (this.categoryData != null && this.categoryData.getCatalogId() == null) { this.categoryData.setCategoryId("GLOBAL"); this.categoryData.setCategoryName(this.getLabel("global")); this.setCategoryPath(); }

I dont have a CategoryId/CategoryName with GLOBAL/Global.SO can you please help me on this issue.

Is it mandatory that the system should have a CategoryId as "GLOBAL" ? Can you help me on this issue ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

I faced the same error with hybris 6.5 on Product backoffice cockpit. It happens as the hybris creates solr query starting from its parent category. As on product cockpit the parent link is GLOBAL it search the category name as GLOBAL.

Workaroun Solution: Create a dummy category named GLOBAL.

Hope it will resolve the issue. Thanks, Hamid