Search code examples
azure-logic-appshttp-status-code-400

Logic apps cannot handle 'Bad Request'


I'm new to Azure Dev. Trying to check statuscode after generating a request in an 'if' condition. It works fine when I get 200. However, it fails when I get a 400.enter image description here. Code view looks something like this: enter image description here It is a bit weird why I couldn't catch 400. I have seen another way to do i.e. to configure 'RunAfter' and then handle the error but need to know what's wrong with my approach here.


Solution

  • You need to enable configure the runafter to run even after the whole workflow is getting failed.

    This is how it worked for me. Go to your work flow and click on Menu for that particular action that you want to run even after the before action is about to fail/ timeout/ skip. In your case it is Condition and then click on Configure run after.

    enter image description here

    enter image description here

    Here is how my code view looks like enter image description here

    OUTPUT: enter image description here