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

Remove Staged Version from ProductCatalog

0 Likes
929

Hello,

I am thinking about just using Online ProductCatalog and remove the Staged Version.

That's why I changed every single Staged to Online and started the initialization Process and got an error

     [java] INFO  [main] [DefaultSetupImpexService] Importing [/myinitialdata/import/coredata/contentCatalogs/myContentCatalog/email-content.impex]... SKIPPED (Optional File Not Found)
     [java] INFO  [main] [AbstractSystemSetup] Begin synchronizing Content Catalog [my]
     [java] INFO  [main] [DefaultSetupSyncJobService] Creating content sync item job for [myContentCatalog]
     [java] INFO  [main] [DefaultSetupSyncJobService] adding Root Type [CMSItem] to Sync Job for Catalog [myContentCatalog]
     [java] INFO  [main] [DefaultSetupSyncJobService] adding Root Type [CMSRelation] to Sync Job for Catalog [myContentCatalog]
     [java] INFO  [main] [DefaultSetupSyncJobService] Created content sync item job [sync myContentCatalog:Staged->Online]
     [java] ERROR [main] [DefaultSetupSyncJobService] CatalogVersion[catalogId=myProductCatalog] cannot be found out
     [java] de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: CatalogVersion with catalogId 'myProductCatalog' and version 'Staged' not found!
     [java] 	at de.hybris.platform.servicelayer.util.ServicesUtil.validateSingleResultWithType(ServicesUtil.java:75) ~[coreserver.jar:?]
     [java] 	at de.hybris.platform.servicelayer.util.ServicesUtil.validateIfSingleResult(ServicesUtil.java:41) ~[coreserver.jar:?]
     [java] 	at de.hybris.platform.catalog.impl.DefaultCatalogVersionService.getCatalogVersion(DefaultCatalogVersionService.java:112) ~[classes/:?]
     [java] 	at de.hybris.platform.commerceservices.setup.impl.DefaultSetupSyncJobService.getCatalogVersion(DefaultSetupSyncJobService.java:100) ~[classes/:?]
     [java] 	at de.hybris.platform.commerceservices.setup.impl.DefaultSetupSyncJobService.getSyncJobForCatalogAndQualifier(DefaultSetupSyncJobService.java:386) [classes/:?]
     [java] 	at de.hybris.platform.commerceservices.setup.impl.DefaultSetupSyncJobService.getSyncJobForCatalog(DefaultSetupSyncJobService.java:379) [classes/:?]
     [java] 	at de.hybris.platform.commerceservices.setup.impl.DefaultSetupSyncJobService.assignDependentSyncJobs(DefaultSetupSyncJobService.java:106) [classes/:?]
     [java] 	at de.hybris.platform.commerceservices.dataimport.AbstractDataImportService.assignDependent(AbstractDataImportService.java:224) [classes/:?]
     [java] 	at de.hybris.platform.commerceservices.dataimport.AbstractDataImportService.importAllData(AbstractDataImportService.java:90) [classes/:?]
     [java] 	at de.my.b2bshop.initialdata.setup.MyCoreDataImportService.importAllData(MyCoreDataImportService.java:23) [classes/:?]
     [java] 	at de.hybris.platform.commerceservices.dataimport.impl.CoreDataImportService.execute(CoreDataImportService.java:33) [classes/:?]
     [java] 	at de.my.b2bshop.initialdata.setup.InitialDataSystemSetup.createProjectData(InitialDataSystemSetup.java:126) [classes/:?]
     [java] 	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
     [java] 	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
     [java] 	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
     [java] 	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

For some reason it still tries to sync myProductCatalog Staged to Online and I don't know how to stop this.

Do you have idea how I can completely disable Staged for ProductCatalog?

Thanks in advance,

Cheers Serdar

Accepted Solutions (0)

Answers (1)

Answers (1)

aimprosoft
Participant
0 Likes

Hi Serdar Dere,

It’s highly NOT recommended to remove the staged version and use only one catalog version because a multi-catalog system is one of the main features of Hybris.

And unfortunately, you can’t remove the staged version without the appearance of bugs. If you try to do that, you need to customize a lot of code in Hybris. You will have issues with smart edit, cockpits and other things.

If you check the documentation for Hybris, you will find that it is necessarily required a minimum of 2 catalog versions.

Best regards,

Igor