cancel
Showing results for 
Search instead for 
Did you mean: 

Processing of Success record after a Failure Exception

sri_reddy10
Explorer
0 Kudos

Hi SAP,

I have a flow in SAP CPI where we are picking the file form SFTP location, splitting the files using Generic Splitter and for each //Condition_Record_no. Based on the requirement, the flow either goes to POST or PATCH and updates in S4hana using OData.

When a record with incorrect data is passed ,the messages is handled in exception sub process and the subsequent records are not being processed.

Example:

Suppose if there are 10 records in a file with 1-8 records having success data and 9th having error data .
10 record having success data.
Current Working scenario : file is getting processed and till 8 records are getting updated in S4.
since 9th record has failure ,the messages is going to define d exception and ending.
Proposed Scenario: After 9th record fails it should send error log mail to users and continue to process the 10th record. If there are more than one error record need to collate all the records log into one do and send mail

Attaching the CPI flow screenshots for reference.

 

Can you please help on this.

Accepted Solutions (0)

Answers (1)

Answers (1)

ShaikAzmathulla
Participant
0 Kudos

Hi sri_reddy10 ,

Current Scenario:

8 out of 10 records are successfully processed.
When encountering an error in the 9th record, the process halts and ends.
There is no handling for error logging or continuing processing after encountering errors.
Proposed Scenario:

Error handling at the record level: Upon encountering an error in the 9th record, handle the exception and proceed to the next record.
Send error log email to users: Notify users via email about the error in the 9th record, including relevant details.
Continued processing: Ensure that the process continues to process the 10th record after encountering an error in the 9th record.
Collation of error logs: If multiple error records occur, compile all error log details into one email for comprehensive notification.

Regards,

Azmath.