on 2024 Nov 02 10:04 AM
Hi All,
I have a requirment, Once i get the data into CPI, i split the each record and will post to two APIs in paralell, My req here when ever there is an error i need to send an email of all errors with source data, each record i send an email, but how to merger all these records into, Since im using router, i cant able to use gather option and even gather is not working in exception subprocess, Can anyone help on this requirment.
Thank You!
#cpi#sapcpi#gather#ErrorHandling
Request clarification before answering.
Hi @Akhil0434
sounds like you need to handle errors and send consolidated error reports via email.
Here are a few suggestions to help you achieve this:
Use a Data Store: Instead of sending an email for each error immediately, you can store the error details in a Data Store. Once all records are processed, you can retrieve the stored errors and send a single email with all the error details. As suggested by @manoj_khavatkopp A Good and Clean approach!!
Exception Subprocess with Aggregator: Although you mentioned that the Gather step isn’t working in the exception subprocess, you might want to try using an Aggregator pattern. This can help you collect all error messages and then process them together.
Of Course Custom Script 😅: You can use a Groovy script to collect error messages. Store each error in a list and then, at the end of the process, compile these errors into a single email.
Here’s a rough outline of how you might implement the Data Store approach: I too would have done the same in your shoes!!
Step-by-Step Guide
Create Data Store:
Store Errors:
End of Processing:
Compile Errors:
Send Email:
Hope this helps!! Ciao! Cloud Integration
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
12 | |
9 | |
8 | |
8 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.