Symptom
You replicate sales order from ERP or S/4HANA to SAP Cloud for Customer (C4C) but receive the error message: 'Exception: Endlees loop due BO Modify, one or more precondition unaccomplishable'in webservice message monitor.
Environment
- SAP Hybris Cloud for Customer
- SAP ERP
- Cloud Platform Integration
- Process Integration
Reproducing the Issue
You have configured replication of Sales Orders from ERP or S/4HANA to C4C using the Communication Arrangement: Sales Order Replication from SAP Business Suite.
- You replicate a sales order from ERP to C4C.
- Once the incoming payload reaches C4C the error 'Exception: Endlees loop due BO Modify, one or more precondition unaccomplishable' is displayed in the error log of the incoming message ID.
Cause
The error 'Exception: Endlees loop due BO Modify, one or more precondition unaccomplishable' is caused by the fact that the message is trying to delete a sales order that does not exist in C4C.
This can be seen when actionCode="05"(Delete) in the root node(CustomerOrderRequest) is sent within the payload.
Resolution
Change the status of the order in ERP/S4HANA so that it gets replicated to C4C and then repeat the action in ERP/S4HANA so that order gets deleted in C4C.
If the order is not archived but deleted in ERP/S4HANA - then there is no way than chose to ignore these failed messages with said error if the action code matches.
Keywords
ERP , ECC , C4C , CustomerOrderReplicationIn , Sales Order Replication from SAP Business Suite , Endlees loop due BO Modify, one or more , Exception: Endlees loop due BO Modify, one or more precondition unaccomplishable , Order, Sales Order , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , LOD-CRM-INT-S4H , Integration of C4C with S/4 HANA , How To