I am using an API that sometimes responds with a body of type string, and other times with a body object with some properties. I am first trying to determine which one was returned. If it is a string, I craft an object to return to the parent script.
My thought was to try to treat the value as an object and handle failures. e.g. this Set Variable action is set to
json( triggerBody()?['text'] )

However, the entire flow is considered as failed even though the error is handled

I've also tried with Compose to see if it was the type of action - same issue. I've also tried to generate failures with alternate expressions to see if they were handled differently. e.g.
addProperty( triggerBody()?['text'], 'X', 1 )
However, they all end up making the entire flow get flagged as a failure.