Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Using Hybris Importer - CQ Commerce

Avatar

Level 4

Hi Guys,

  I'm dealing with one of the OOTB Hybris importers supported by CQ . I'm following the documentation from here (http://dev.day.com/docs/en/cq/current/ecommerce/eCommerce-framework.html)  to get going on integrating  CQ commerce with Hybris .  I'm currently on CQ 5.6.1 .

As advised in the documentation I  have installed packages  

  1. cq-hybris-content -5.6.100
  2. cq-hybris-server- 5.6.0

I can log into Hybris and view/update the catalogs . Now i'm trying to import the catalogs form hybris .So when I open the hybris catalog importer  I see something different from what is shown in the documentation . Snapshot attached . I do not see 'Root Path' but see 'Language Code' and  'Commerce provider' . 

However, when I attempt to import an existing catalog from a base Hybris site into CQ, by specifying the values , it fails with the  log message  'Base site clothingcatalog doesn't exist' .

Do I need to create any structure in AEM side before importing the catalogs ? Why is that my local instance of  ' Hybris Importer ' different from the one shown in the documentation ? Can it be due to  higher /lower version ? 

Thanks in advance for any pointers on this issue . 

Console Logs : 

noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>de.hybris.platform.ycommercewebservices.exceptions.InvalidResourceException: Base site clothingcatalog doesn't exist
    de.hybris.platform.ycommercewebservices.filter.BaseSiteFilter.processRequest(BaseSiteFilter.java:99)
    de.hybris.platform.ycommercewebservices.filter.BaseSiteFilter.doFilterInternal(BaseSiteFilter.java:65)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    de.hybris.platform.util.RootRequestFilter.doFilter(RootRequestFilter.java:868)

 

[img]hybris.png[/img]

 

regards

kris

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi Ramneek , 

   As mentioned in the documentation , import process will not create content pages . You will need to create them using  blue prints .  For reference you can install geometrixx-hybris package for content pages and play along . 

 regards

View solution in original post

7 Replies

Avatar

Employee

Hi kris,

You are receiving that error because there is no "base store" configured in hybris for that catalog (clothingcatalog). You can try importing the catalog "electronicsProductCatalog" from the base store "electronics", as another example.

The minor difference in the "Hybris importer" screen that you are seeing is indeed caused by the newer version of the package. 

Lastly, it would be ideal if you could use the latest hybris server package as well (cq-hybris-server 5.6.100).

Thanks,

Catalin

Avatar

Level 10

The product team is looking into this and will respond. 

Avatar

Level 10

I have discussed your observations about this topic in the CQ documentation. The team is aware of this issue and is working hard to fix it. 

Avatar

Level 4

Hi Catalin and smacdonald  , 

  Thanks for your pointers and updates . Appreciate it . Just wanted to let you guys know that I tried with your recommendations and made some progress . 

So I installed CQ-Hybris-Server 5.6.1.00  . The Hybris instance  had only one base store created 'outdoors' . So with pointing  "Base Store" and  "catalog" to  'outdoors'  , "language code" as 'en',  "commerce provider" as 'Hybris' , I was able to import product details and had product hierarchy structure (as designed in hybris) created  in crx under     'etc / commerce /products/outdoors/en' . As explained in the documentation , the image assets were also created under  '/content/dam/geometrixx-outdoors'. For some products there were errors reported  and ignored  , but most of them were imported .

However as explained in the documentation , there are no content pages created by default  .There were no logs also indicating creating of any content pages . I can see traces of rest calls in Hybris and CQ servers  related to fetching and creating categories with products and assets but none related to content pages . Have I misunderstood the documentation ? Aren't content pages created by default as part of import process? Do I need to pre create any structure in AEM for the import process to recognize for creating content pages ? 

 

Import Console Logs:     

A /etc/commerce/products/outdoors/outdoors/en/seasonal/winter/apparel_0/hats A /etc/commerce/products/outdoors/outdoors/en/seasonal/winter/apparel_0/scarves A /etc/commerce/products/outdoors/outdoors/en/seasonal/winter/equipment_1 Created product   /etc/commerce/products/outdoors/outdoors/en/men/shirts/320984 Created image     /etc/commerce/products/outdoors/outdoors/en/men/shirts/320984/image A /content/dam/geometrixx-outdoors/products/import/320984 Created product   /etc/commerce/products/outdoors/outdoors/en/men/shirts/023984 Created image     /etc/commerce/products/outdoors/outdoors/en/men/shirts/023984/image A /content/dam/geometrixx-outdoors/products/import/023984

[img]import.png[/img]

Avatar

Level 1

Hi,

I am also facing the similar issue. I am using CQ5.6 and was able to import the catalog successfully from hybris but the content pages are not getting generated.

Please let me know if you were able to resolve this issue.

Thanks,

Ramneek

Avatar

Correct answer by
Level 4

Hi Ramneek , 

   As mentioned in the documentation , import process will not create content pages . You will need to create them using  blue prints .  For reference you can install geometrixx-hybris package for content pages and play along . 

 regards

Avatar

Level 1

Hi Kris,
 I am also facing the similar problem. I am able to import the catalog and the products successfully into AEM. But there were no content pages created as mentioned in documentation.
 
 Here is what i did.
 1. Installed AEM-5.6.1
 2. Uploaded package "cq-hybris-content-5.6.100.zip"
 3. Uploaded package "cq-geometrixx-hybris-content-5.6.100.zip"
 4. I have not installed "cq-hybris-server-5.6.100.zip" as i have a external hybris server(v 5.0.0.0) up and running successfully.
 5. Imported Catalog and the products successfully into AEM using "http://localhost:4502/etc/importers/hybris.html" and i am able to see the products under etc/commerce/products and images under dam
 
 Now how do i display my products as there are no pages created by default? Do i need to pre-configure something(like creating page templates) before importing the catalogs into AEM?
 Do i need to manually create all the category and product pages manually after importing the catalog from hybris?
 Also can you please explain what is the blue prints concept as i am totally new to that concept? What else i should do to display my products?
 It would be realy helpfull if you can provide some document or any pointers in this regard.
 Thanks in Advance..
 
 Thanks,
 Vishnu Reddy.