Unexpected Error Message from Web API Despite Successful Process Model Execution

Certified Associate Developer

Hello,

I have a Web API configured to trigger when a process model encounters a failure. The logic to detect the failure in the API's body section is as follows:

error_code: if(fv!processInfo.pv.success, fv!processInfo.pv.errorCode),
error_description: if(fv!processInfo.pv.success, fv!processInfo.pv.errorMessage, "Failure in process model")

The issue I'm facing is that the process model executes successfully — no errors occur, and I receive the expected data in the response. However, the API still returns the error message: "Failure in process model". Also, the errorCode and errorMessage passed from the process model are empty.

Could anyone help me understand why this is happening? Is there something wrong with how the condition is structured? Keep in mind it used to work prev and is working perfectly in other processes/web APIs?

  Discussion posts and replies are publicly visible