LJsec
LJsec

Reputation: 118

Azure Logic App report success when HTTP action fails

Problem

I have a http action in my logic app that returns a 404 error when the item being checked isn't found in the database. This is by design, I expect to see a lot of 404 errors. I have no control over the API so I can't adjust what's returned in the response or the code returned. The run after is configured and dependent actions succeed

Due the 404 being returned my logic apps report as failed, and this throws off the reporting.

Is there a way to mark the action as succeeded if the response code is 404?

Logic app flow

Logic App Flow

Failure History

Failure History

Upvotes: 1

Views: 606

Answers (1)

10p
10p

Reputation: 6706

I don't observe this behaviour. Are you sure no other action fails in your workflow down the line?

enter image description here

You can try using the Terminate action with Status = Succeeded, although I haven't encountered a scenario yet where this would have been useful.

Update: In your screenshot, I noticed that you're using a loop. Have you made sure that all 4 iterations in this loop succeeded? The 'Create UPN' could have failed in one of the iterations, or there could have been other issues.

Upvotes: 1

Related Questions