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

Export message processing log from CPI

VishnAndr
Active Contributor
4,061

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?

View Entire Topic
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 😉