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

Export message processing log from CPI

VishnAndr
Active Contributor
4,059

Dear Community,

Is there any way to export CPI message processing log for failed messages in mass with error details? Not going one by one and check in UI.

What I tried so far is using SAP CPI odata API and I used it to export required entries to MS Excel taking the source as oData Feed. Something like .../api/v1/MessageProcessingLogs?$filter=Status eq 'FAILED' and LogStart gt datetime'2019-03-11T16:00:00'

This gives me a header information of message processing logs. But when I'm trying to expand record column ErrorInformation seems like MS Excel going crazy and reading hundreds of megabytes of data and becomes irresponsive. Actually, it won't probably help at all. Because I'm more after to get .../MessageProcessingLogs(<messageid>)/ErrorInformation/$value which is a stream and contains a real error message from the log.

Have anyone experienced the same and how did you tackle it?

Accepted Solutions (1)

Accepted Solutions (1)

VishnAndr
Active Contributor
0 Likes

Solved using proper Power Query in MS Excel. Just needed to gain more knowledge in M-language 🙂

JaySchwendemann
Active Contributor

Would be swell if you'd share your wisdom 😉

Answers (1)

Answers (1)

Former Member
0 Likes

We should be able to build an iflow with combination to extract these messages ids in the main flow then pass: MessageGuid alone by splitting this response to a subprocess to extract error information of the same. Finally, gather the second response only the fetching error tag and create a single CSV file at the end with less fields.

VishnAndr
Active Contributor
0 Likes

Good approach, thank you! But I would prefer something more user friendly...