on ‎2021 Mar 10 8:01 PM
Hi All,
In HotFolder, when there are any errors in Impex rows those should be moved to the error directory and rest over lines should be processed successfully and the file should be moved to archived folder. In my case, I haven't made any spring configuration to direct them to the error folder using any error channel or error handler.
I need help in this setup.
Thanks,
G Gopinath.
Request clarification before answering.
Hello,
For hot-folder,
Below code for error handling using error channel and handler for the same is already there OOTB in acceleratorservices. You can use the same and declare in XML files, rest should be taken care.
Thanks!
<!-- ErrorHandler -->
<int:channel id="errorChannel" />
<int:service-activator input-channel="errorChannel" ref="errorHandler" method="onError" />
<bean id="errorHandler" class="de.hybris.platform.acceleratorservices.dataimport.batch.task.ErrorHandler">
<property name="cleanupHelper" ref="cleanupHelper" />
</bean>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
2005 I don't know of any changes/ differences in this case. Please check if so.
accelaratorservices XMLs should still have the basic configuration including the error channel too as I said above.
Check out this class reference too.
de.hybris.platform.acceleratorservices.dataimport.batch.task.ErrorHandler
Finally please check which kind of error is it in Impex run too.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.