cancel
Showing results for 
Search instead for 
Did you mean: 

Default catalog removing while updating through HAC

Former Member
0 Kudos

Hi All, We have an issue when we try to do an update through HAC the default catalog is being present.This is being created everytime when we do an update.We remove it via HMC.So inorder to remove the Default catalog we have written an IMPEX script to delte it during update call itself.We were able to delete the Default- Stage but the online is not getting deleted and says item insatnce is 0.Could you please help or provide suggestion how to delete the default online as well.Your help is appreciated.

Impex script used while updating

INSERT_UPDATE RemoveCatalogVersionCronJob;code[unique=true];job(code);catalog(id);sessionLanguage(isocode); ;DefaultCatalogOnline;removeCatalogVersionJobPerformable;Default;en

INSERT_UPDATE Trigger;cronjob(code)[unique=true];cronExpression ;DefaultCatalogOnline; * ?

Accepted Solutions (1)

Accepted Solutions (1)

former_member387866
Active Contributor
0 Kudos

Hi Vignesh,

Do I understand you correctly?

  1. You don't want the Default-Staged and Default-Online catalogs.
  2. You have written a cronjob, that runs all the time ( *) to delete the unwanted catalogs.
  3. The cronjob is successfully deleting the Default-Staged catalog.
  4. The cronjob is not deleting the Default-Online catalog.

Are you referring to the catalogs that come with the hybris platform accelerators? The Power Tools and Apparel catalogs. Or are you referring to a catalog that you have built?

In the case of wanting to remove the catalogs that come with the hybris platform accelerators, have you tried commenting the "sampledata" extension(s) in your config/localextenstion.xml file?

Updated Answer:

This person also wanted to do the same thing. According to the Catalog Guide;

If no catalog is set as default, the CatalogManager creates a new catalog called default and creates an on-line (Online) and an off-line (Staged) catalog version within that new catalog.

So it seems that you must set your desired catalog as the default catalog, then remove the "Default-Online" one.

To do this,

  1. In the hMC, click on "Catalog", then "Catalog Browser". A list of catalogs in the system will display.
  2. Right-Click on the catalog you want to make the default one. On the context menu that appears, click on "Edit". A new editor window will appear.
  3. Under the "Common" tab of this editor window, set the RadioButton to "Yes", then click "Save and Close".
  4. Right-Click on the "Default" catalog, click "Edit". Click "Completely Remove Catalog", Click "Start", wait for it to finish, then click "Done". Click the editor window's "x" button.

I updated my system, via the hAC, with "Create Essential Data" enabled. When it completed, I check the hMC -> Catalog -> Catalog Browser, and the "Default" catalog was still there, but was no longer the default catalog on the system.

So can you try to make another catalog your default one, then run your cronjob to remove the "Default" catalog?

Regards, Luke

Former Member
0 Kudos

Yes i am refering to the default one which is given by hybris.We still se online is not getting removed. we have already removed sampledata from config/localextenstion.xml. Still it is same

former_member387866
Active Contributor
0 Kudos

I've updated my top level answer with steps to set a catalog as default, then remove the "Default" catalog.

Former Member
0 Kudos

its not working in mine. i have made changes according to what you have mentioned . do I need to update via HAC ??

Former Member
0 Kudos

I want to remove all other catalogs and want to keep only my catalog in hMC. what changes do I need to make?

Former Member
0 Kudos

I am having an issue removing this Default Catalog too. Not sure why but there is an impex called mcc_links.impex which creates this catalog as part of essential data for mcc extension.

0 Kudos

Hi Luke , Do we have this option to remove completely in backoffice? I tried to found this in backoffice but could not. though it was available in HMC.

Answers (1)

Answers (1)

Former Member
0 Kudos

I get this error too when removing Default catalog. "Catalog contains non removeable catalog versions or items"