Showing results for 
Search instead for 
Did you mean: 
Resident Rockstar
Resident Rockstar

Power Automate is changing expressions in the flow after saving, resulting in the wrong output

I am helping a user with a flow query (see See:

I have a flow that produces the correct output. If I then close the flow and return to the flow gain and run it again, I get the wrong output due to flow changing the expression used in the original flow. See the image below and note the outputs for Compose item 3 changing from a string to a JSON object:


Here is the entire original flow:


During the second edit no changes were made, the flow was run flow again, then I edit flow.  Note Compose item 3 and compare with the original flow:


Third Run, closed the flow completely, edit flow, no changes made, save and run the flow again. Note Compose item 3 and how the expression has changed from item()[''] to items('Apply_to_each') - shown as Current Item:


Note how the output for Compose Item 3 has changed from a string (email address) in the first run to a JSON object in the final run:


I suspect the issue is caused by the data, with the JSON array not truly valid as it is missing a value for the key property. This is the user's source data unfortunately.





    "": ""





The behaviour of the flow is very odd. You can easily re-create the flow and see if you get the same or similar issues.




Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,760)