cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to setup Error Channel in Hot folder?

former_member715753
Discoverer
0 Likes
901

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

pavan_joshi1
Participant
0 Likes

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>
former_member715753
Discoverer
0 Likes

Hi PavanKumar,

Thanks for answering my question.

We are working on hybris 2005 and I added the above lines mentioned by you. But there is no change. I still not able to see error folder getting created when I feed file with incorrect data.

Thanks,

G Gopinath.

pavan_joshi1
Participant
0 Likes

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.