Bug: Logic App debugging showing wrong case as exectued in designer

Thomas Johnson 66 Reputation points
2021-08-17T16:02:31.213+00:00

When debugging a Logic App Run online, a Switch action sometimes marks the Default as being ran with a green question mark instead of the case that was executed. I noticed this mainly when the switch is on a string that contains digits only. Attached is a screenshot.

123998-image.png

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,551 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2021-08-24T13:26:07.697+00:00

    @Thomas Johnson This is likely because of the types like you've mentioned. If the input is the string of a number, you need to compare against the expression string(204) instead of just 204. Or the other way of comparing the expression int(<token>) to the numbers the way you have now.


  2. Thomas Johnson 66 Reputation points
    2021-11-23T14:03:53.68+00:00

    Thank you. This is a good "workaround" to getting the debug page to display correctly.

    I still think the debug page should display correctly without us adding "extra" code.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.