Hi,
I'm pretty new to Power Automate and try to figure out the following issue:
This is my flow:
In my flow, I have two 'Search for users (V2)' actions that check for users with different search terms.
After this, I have a condition, that checks the results of these two actions based on the length of the output:
length(outputs('Search_for_users_(V2)')?['body/value'])
length(outputs('Search_for_users_(V2)_-_varUserCount_eq_0')?['body/value'])
In this configuration, I get this error:
Unable to process template language expressions for action 'Existing_user_found' at line '0' and column '0': 'The template language function 'length' expects its parameter to be an array or a string. The provided value is of type 'Null'.
But the left 'Search for users (V2)'-action outputs date, as you can see here:
My troubleshooting showed, that when I remove the second expression from the condition 'Existing user found', it correctly checks the output of the left 'Search for users (V2)'-action (but fails with the same error in the second run as expected).
So it looks like the condition with two expressions doesn't work the way I think it should.
I hope somebody can help me with this. What can I do so the second condition correctly checks for both 'Search for users (V2)' actions?
Thanks for the help.