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

How to fix the issue with deleting Sales Orders in SAP Marketing Cloud

alex_gaevoy
Explorer
0 Kudos
249

Hi Experts!

Could you help to fix the issue with deleting Sales Orders in SAP Marketing Cloud?

We use CUAN_BUSINESS_DOCUMENT_IMP_SRV for deletion of interactions with type SALES_ORDER:

POST request to https://myXXXXXX-api.s4hana.ondemand.com/sap/opu/odata/sap/CUAN_BUSINESS_DOCUMENT_IMP_SRV;v=0003/Imp...

Payload body:

{

"Id":"MSG_20210405_II",

"Timestamp":"2021-12-05T15:41:36",

"SourceSystemType":"XXXX",

"SourceSystemId":"LOYALTY",

"BusinessDocuments":

[

{

"ActionCode":"05",

"ExternalObjectType":"CUAN_MARKETING_ORCHESTRATION",

"ExternalId":"12785167_1998",

"ExternalTimeStamp":"2021-12-05T15:41:36",

"MarketingAreaId":"XXXX"

},

{

"ActionCode":"05",

"ExternalObjectType":"CUAN_MARKETING_ORCHESTRATION",

"ExternalId":"12738670_1998",

"ExternalTimeStamp":"2021-12-05T15:41:37",

"MarketingAreaId":"XXXX"

}

]

}

The request worked successful up to 11 December with several record in BusinessDocuments part of payload.

But right now the payload like I posted above finishes with error “Interaction can not be deleted”.

If I put only one business document (one Sales Order with ExternalID) in payload (e.g. I put only first record and remove second one in the BusinessDocuments part of the payload above), the request finishes successful.

Could you help to find the root cause and fix the issue?

Thanks in advance!

Have a nice day!

Alex

Accepted Solutions (0)

Answers (0)