cancel
Showing results for 
Search instead for 
Did you mean: 

While importing cms-content.impex getting error.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member

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 !

0 Kudos

Hi, Did you get any solution for this?

krishn_signet
Participant
0 Kudos

Search if 'structure_productDetails1PageTemplate.vm' exist at 'Hybris\hybris\bin\ext-template\yacceleratorcore\resources\yacceleratorcore\import\cockpits\cmscockpit\structure-view'

Former Member
0 Kudos

Hi Krish, Yeah the file is there. See that's the problem everything seems to be in place i don't know what's the issue.

Former Member
0 Kudos

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.