on 09-23-2016 9:48 AM
While importing cms-content.impex getting below error. Plz help
UPDATE PageTemplate;catalogVersion(CatalogVersion.catalog(Catalog.id[default=apparel-ukContentCatalog]),CatalogVersion.version[default=Staged])[default=apparel-ukContentCatalog:Staged][unique=true];uid[unique=true];velocityTemplate[translator=de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator] ,8796093056052,,, column 3: cannot resolve value '$config-jarResourceCmsValue/structure-view/structure_productDetails1PageTemplate.vm' for attribute 'velocityTemplate';;ProductDetailsPageTemplate;$config-jarResourceCmsValue/structure-view/structure_productDetails1PageTemplate.vm
Hi @
The main reason, that is evident though the logs is, that the file structure_productDetails1PageTemplate.vm is not present on the specified path jarResourceCmsValue
The property jarResourceCmsValue should be present in your property files, a sample excerpt from the /yacceleratorcore/project.properties
is provided below for your reference
jarResourceCmsValue=jar:de.hybris.platform.yacceleratorcore.setup.CoreSystemSetup&/yacceleratorcore/import/cockpits/cmscockpit
Please include the below statement before your impex statements, so that it executes ahead of the rest of them.
UPDATE GenericItem[processor=de.hybris.platform.commerceservices.impex.impl.ConfigPropertyImportProcessor];pk[unique=true]
$jarResourceCms=$config-jarResourceCmsValue
Now, as per the excepts above, for the impex to get executed successfully, your file should be present at the below mentioned path
/yacceleratorcore/resources/yacceleratorcore/import/cockpits/cmscockpit/structure-view
Adjust the properties as per your convenience and execute the impex.
Hope this helps !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Did you get any solution for this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Search if 'structure_productDetails1PageTemplate.vm' exist at 'Hybris\hybris\bin\ext-template\yacceleratorcore\resources\yacceleratorcore\import\cockpits\cmscockpit\structure-view'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vikrant thnaks for the help. I executed the above update statement but still it didn't work (same error). By the error the update statement is already present in the cms-content.impex file and gets executed before these statements. So there might be sth else is going on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
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.