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

How to fetch known error in Action call for SAP Build Process Automation

EmanuelWalzer
Newcomer
0 Likes
537

Hi experts,

we have created a process within SAP Build Process automation. The process includes an action call after an approval task.

Within the CAP application which is handling the action call we have defined known errors that will be returned as follows:

return req.error({
    code: 123, // internal code for identifying return messages
    message: "my return message",
    target: "where is the message caused",
    status: 4## //the error status
})

An error could be that a specific action was not done before approval by the approver himself.

However, if the action does not retrieve a success return (HTTP return status equals 4##) the whole process is put to an error state. Is there any possibility to catch this error within the process itself and send a notification to the MyInbox of a specific group/user?

Actually, we don't want the process to get into an error state for this scenario but instead execute an alternative path within the process itself.

 

regards

Emanuel

Accepted Solutions (0)

Answers (1)

Answers (1)

Sankara1
Product and Topic Expert
Product and Topic Expert
0 Likes

Hallo Emanual, can you please check following error management Tutorial to assist below error ( https://help.sap.com/docs/build-process-automation/sap-build-process-automation/create-your-automati... https://help.sap.com/docs/build-process-automation/sap-build-process-automation/create-file?locale=e...)

Please feel free to share if you need further assistance with the notification. 

dperezb
Explorer
0 Likes
These links don't apply to this use case...We have the same problem and we created the workflows in the web editor, where it seems we don't have the ability to catch action errors which is kind of basic