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

Orders replication from DataHub to ERP failing

Former Member
0 Kudos
448

Hi all,

Time to time I have an issue with sending orders from Hybris to ERP, they are not arriving to ERP. I have found, that Datahub standard code in class named DefaultIDocSender always returns value "success" if webservice call has reached ERP regardless of returned message...

In this case when order doesn't arrive to ERP we can see an error message coming from ERP: 2018-03-20 16:17:58,287 [DEBUG] [c.h.d.s.i.DefaultIDocSender] soap-env:ServerWeb service processing error; more details in the web service error log on provider side (UTC timestamp 20180408141758; Transaction ID 5BAFE7D4ED566CD8E10000000A216546)

This is an information message available only when log level is set to DEBUG thus DH marks publications as SUCCESS. Could you please advise me how to implement more convenient error handling for webservice when fault message is returned?

Thanks for any information, Andris

In attachment you can find DefaultIDocSender.class: link text

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Andris - If you wish you can extend DefaultIDocOutboundAdapter in sapidocoutboundadapter Data Hub extension to handle error message received from the IDoc soap service. Some more information here https://help.hybris.com/6.7.0/hcd/012a0c8e97aa486ab32cc7c88315ae84.html. Here you can implement logic to mark the publication as failure and retry after a certain amount of time. But remember the retry will keep failing until the issues are resolved on the ERP / S4HANA side. This also means that you will be waiting for a response from the ERP / S4HANA system after the soap request is made and this may break the true asynchronous paradigm of the replication. Hope this helps!