cancel
Showing results for 
Search instead for 
Did you mean: 

Exception Subprocess mechanism in SAP CPI

former_member736500
Discoverer
0 Kudos

Hi Experts,

I am working on a CPI Iflow in which I need to log the original message(headers+body) using exception subprocess whenever the message execution is failed. To achieve this, I have maintained exception subprocess with SFTP channel to post the failed message into the SFTP server. While executing the flow, I am getting below error.

Error Details:

org.apache.camel.component.file.GenericFileOperationFailedException: Cannot write null body to file:

As per my observation:

  • only error details are sent to the ‘Exception Subprocess’ to catch and not the actual message(headers+body).
  • The actual message(header+body) is not sent to the exception subprocess.

Queries:

  • Is my understanding accurate?
  • If so, is this behavior documented somewhere?
  • What is the best practice to transfer the actual message(headers+body) using exception Subprocess?

Thanks.

moshenaveh
Community Manager
Community Manager
0 Kudos
Welcome and thanks for visiting SAP Community to get answers to your questions. Since you're new, I recommend having a look at our Q&A tutorial at: https://developers.sap.com/tutorials/community-qa.html, as it provides tips for preparing questions that draw responses from our members.
For example, you can:
- outline what steps you took to find answers (and why they weren't helpful)
- share screenshots of what you've seen/done
- make sure you've applied the appropriate tags
The more details you provide, the more likely it is that members will be able to help you. Should you wish, you can revise your question by selecting Actions, then Edit.
By adding a picture to your profile you encourage readers to respond: https://www.youtube.com/watch?v=46bt1juWUUM
View Entire Topic
IvoVermeer
Explorer
0 Kudos

Hi Kumar,

I scanned the contents of Bhalchandra's patterns but I can't find anything on this topic. I don't think this approach is documentented seperatly.

former_member736500
Discoverer
0 Kudos

Hi Ivo,

Ok,Thanks.