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

Thomas Johnson 61 Reputation points

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.


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

2 answers

Sort by: Most helpful
  1. Pramod Valavala 20,591 Reputation points Microsoft Employee

    @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 61 Reputation points

    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.