on ‎2019 Jun 06 2:48 PM
Hello, I have an impex which I execute within JUnit Test
INSERT_UPDATE LCronJobHistoryCleanUpCronJob;code[unique=true];job(code)
;myCronJob1 ;compareCatalogVersionsJobPerformable
On the JUnit tenant, the impex import fails with this exception:
INSERT_UPDATE LCronJobHistoryCleanUpCronJob;code[unique=true];job(code)
,,,,error creating item despite missing mandatory/initial columns : line 6: cannot create LCronJobHistoryCleanUpCronJob with values ItemAttributeMap[ registry: null, type: <null>, data: {code=myCronJob1} ] due to [de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator@3f92bc35]:missing values for [job] in model LCronJobHistoryCleanUpCronJobModel (<unsaved>) to create a new LCronJobHistoryCleanUpCronJob| column 2: cannot resolve value 'compareCatalogVersionsJobPerformable' for attribute 'job', error creating item despite missing mandatory/initial columns : line 3: cannot create LCronJobHistoryCleanUpCronJob with values ItemAttributeMap[ registry: null, type: <null>, data: {code=myCronJob1} ] due to [de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator@3f92bc35]:missing values for [job] in model LCronJobHistoryCleanUpCronJobModel (<unsaved>) to create a new LCronJobHistoryCleanUpCronJob;myCronJob1;compareCatalogVersionsJobPerformable
Particularly: "cannot resolve value 'compareCatalogVersionsJobPerformable' for attribute 'job',"
Looks like I cannot access the bean compareCatalogVersionsJobPerformable (and other spring beans, I tested it) within the JUnit tenant during an impeximport ?
Same impex snippet is being imported without problems on the master tenant. What could be the problem?
Thanks in advance!
Sven
Request clarification before answering.
you must create the job 'compareCatalogVersionsJobPerformable' in your impex.
This is done during update but only when essentialdata is executed. When essentialdata does not run the job is missing. I assume in junit tenant essentialdata does not run.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply. But the compareCatalogVersionsJobPerformable ist actually a spring bean. It is already defined in
hybris/bin/platform/ext/platformservices/resources/jobs-spring.xml
<bean id="compareCatalogVersionsJobPerformable"
class="de.hybris.platform.catalog.job.CompareCatalogVersionsJobPerformable" parent="abstractJobPerformable">
...
</bean>
How can I define it in the Impex ?
Thanks.
| User | Count |
|---|---|
| 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.