SAP Hybris suite , Hybris tutorial, Java, J2ee Stuff Online-

0
Getting error while creating cron job through impex (Hybris 6.2 version)

Open 2 Answers 653 Views
Impex used :-

INSERT_UPDATE CronJob; code[unique=true];job(code);singleExecutable;sessionLanguage(isocode)
;sendRankingCronJob;sendRankingJob;false;en

Below Error while running the impex in hac :-

INSERT_UPDATE CronJob;code[unique=true];job(code);singleExecutable;sessionLanguage(isocode)
,,,,cannot create due to unresolved mandatory/initial columns| column 2: could not resolve item for sendRankingCronJob;sendRankingJob;sendRankingJob;false;en

30.12.2016 16:10:00: ERROR: de.hybris.platform.impex.jalo.ImpExException: Can not resolve any more lines ... Aborting further passes (at pass 2). Finally could not import 1 lines![HY-123]
30.12.2016 16:10:00: ERROR: de.hybris.platform.impex.jalo.ImpExException: Can not resolve any more lines ... Aborting further passes (at pass 2). Finally could not import 1 lines![HY-123]

 

Thanks

2 Answers

0
This happens because the Job for your cronjob doesn't exist yet.

The Job "sendRankingJob" is created when initializing the system (for every bean with parent AbstractPerformable a job is created automatically in the DB by hybris).

The impex files are divided into 2 : project data and essential data. You should place your impex lines in impex categorised as project data.
answered Feb 6 by anonymous
0
Hello,

After writing the Business logic of CronJob & injecting the Spring Bean,
           1) Do "ant" in your command prompt
           2) Start the Hybris server
           3) Update the Platform by selecting the respective extension.

Then Create the CronJob & Trigger through Impex script in HAC.

Hope this solves the problem.

Thank You.
answered Jul 21 by anonymous

...