user15948501
user15948501

Reputation: 87

How to load an impex automatically at the time of system updation in hybris?

I have written an impex in trainingcore/resources/trainingcore/import/common/my_products.impex After that, I did a system update and checked the trainingcore extension for project data creation. But the impexes were not loaded. After reading some articles, I realised it has something to do with CoreSystemSetup.java class, but I can't get exactly what needs to be done. Can someone please help?

Upvotes: 0

Views: 1982

Answers (2)

roudlek
roudlek

Reputation: 385

if you're following the SAP COMMERCE documentation :Essential and Project Data by Convention

the essential data will show up first in initialization in log file, and as they say :

Open the latest console log file in the /hybris/log/tomcat directory with a plain text editor or a log file browsing tool.

Locate in the log file where the two ImpEx files were processed and confirm that no errors were reported for the imports.

the projectdata file will be scanned when initialization is near to complete

to check your data use flexible search after initialization complete

Upvotes: 0

Raushan Kumar
Raushan Kumar

Reputation: 1248

During the initialization and update processes, the platform looks for ImpEx files in the <extension_name> /resources/impex folder. In particular:

For essential data: The platform scans the <extension_name> /resources/impex folders for files with names that match the pattern essentialdata*.impex and imports the files during the essential data creation.

For project data: The platform scans the <extension_name> /resources/impex folders for files with names that match the pattern projectdata*.impex and imports the files during the project data creation.

The ImpEx directory does not exist by default. You must create it and copy files to it.

For example, if you have the following folder structure:

resources/impex/essentialdataOne.impex

resources/impex/essDataOne.impex

Upvotes: 2

Related Questions