on 09-01-2014 12:49 PM
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; * ?
Hi Vignesh,
Do I understand you correctly?
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,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I get this error too when removing Default catalog. "Catalog contains non removeable catalog versions or items"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.