There is a web api that runs a process model when data is passed in. Upon executing the process model, I receive a failure in the process model due to memory (attached below) which stops the process model. However the web api returns the success payload (error 200) rather than the error payload (error 500). Why doesn't the API return the on failure payload, and how do I configure it to return the failure payload if this memory issue arises again?
Discussion posts and replies are publicly visible
What happens when you test the API in the WebAPI object with the same inputs?
The process model fails, however the web api executes the "on success" portion rather than the "on failure"
What I mean is, when you test the WebAPI object, see if you are getting the datasubset as output from the called QE. You will need to find the difference in output when the data is returned vs when the data is not being returned. And then you can add it as a condition and return 500.
Additionally, try to reduce the size of the output. Add a smaller page size. We don't really work on a large data sets
I guess this is because the web api is working as expected, but the problem is that you are reaching memory theshold when converting the values in your pm