I have a workflow which takes an array, then a loop RESTQuery block runs each ID in the array through an API endpoint interpolating the ID into the url, then a code block to combine/mutate the results.
Trouble is some ID's will respond 404 from the query rest API, and I have no control over this part.
When I run the API query loop block independently it has a green checkmark and shows as successful, where the resulting array is just null for the failed results; this is great. I can then run the mutate code block + add to database.
But when I run the workflow as a whole, if one of the API calls fails it just stops the whole workflow and I can't figure out a way to go past that.
I would really like the workflow to still complete just with null results.
I've tried looking into the Error handlers but that didn't work, it logs the error but still fails overall. I tried putting if statement in the code version of the rest API query block but still fails.