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

Import Monitor- Error Message sent back to CPI

former_member601733
Participant
0 Likes
770

Hi All,

During the interface from third party system, when the data fails in SAP Marketing the error message sent back is not meaningful. When we analyse the import monitor the error is clear.

How to send the error message what we see in import monitor? It should be available in standard, and SAP marketing should be sending the same error message back to SAP CPI.

Kindly confirm if my understand is correct. if not suggest some ways to send the correct error message back to CPI

with regards,

Selva

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi Selvam,
it depends from several things, eg. which API do you use and the error case itself (technical error in the payload - eg. wrong attribute, xml violation or "business error", that is e.g. you send a value for a field with fix values that is not in the customizing).

For real technical issues in the payload (e.g. string too long and xml violation), you directly get the error message from gateway stack back (the payload gets not to the staging area), and you can see this in the CPI (check e.g. the trace options for your iflow).

For the business issues (payload valid from XML point of view, but later business issues appear), it depends whether the service call triggers a direct processing of the payload or just puts the payload into the staging area.
If the service call just posts the payload to the staging area, you will get only the success message:

....
 HPA_STAGING_AREA/037 Payload is processed via staging area. See Import Monitor for details. 
....

as direct reponse from marketing to CPI. You can check the response in the CPI trace. Still it could happen that the processing of the message from staging area to business object leads to an error, which you can then see in Import Monitor, but of course not in CPI. You can force a direct processing of the message in Marketing system with the flag Sap-Cuan-ForceSynchronousProcessing set to true.

Then you get the direct response also in the call. ee also more information about the behaviour of the apis in the Marketing Cloud Integration Guide, eg. for Contact service. Note that in general, from a performance point of view it can be better to use the staging area.

Maybe this clarifies a bit, best regards, Sophie.

former_member601733
Participant
0 Likes

Hi Sophie,

Thanks for the reply. We are trying to create a interaction in Marketing via CPI. If the product used in the interaction is not available in marketing we are getting the error message in import monitor. But the CPI is sending some error message to the source system which is not clear.

The source system needs the same error message like product not available to be sent back, so it can be rectified to send back. I thing SAP should be sending the same error to CPI. But the CPI team is not able to confirm it.

If the marketing system will send the same error message as what it gets in Import monitor, then where to see or how to sent the product not available error back to CPI

Regards, Selvam

Former Member
0 Likes

Hello selvam.thandapani, i checked a similar example as yours from postman: a $batch payload with one interaction that has products that do not exist, and it's true, the reponse i got was not pointing to the products error. I think you could open a ticket for that on component CEC-MKT-DM-IA. Best is you describe your usecase with a payload attached (payload + response you get (trace it from CPI, e.g. as described here) ) + what you would expect, best regards, Sophie