cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rucysg
New Member

Weird Flows results - showing wrong data

Hi,


I'm looking at the results of a flow that has run. It is showing me different results for the same variable that was not changed.

 

I'm comparing two arrays. First array is a list of all my users. Second array is the temperature records submitted into SharePoint. I loop through every user in my first list and use filter array to see if they are in the second array. If length of filtered array < 2 (only 1 or 0 records for the day), then send an email alert. I use strCheckEmail to store each user as I loop through the first array. The same variable is used for Send Mail.

 

You can see from the screenshots that although strCheckEmail=hoongkaixuan, it mysteriously becomes adriantan when the filter array and Send Mail action occurs.

 

Any idea?

 

Below is my flow configuration.

 

My flow settings.My flow settings.Comparing against each array itemComparing against each array itemstrCheckEmail=hoongkaixuan. However filter array output shows adriantanstrCheckEmail=hoongkaixuan. However filter array output shows adriantanHere it changes to adriantan.Here it changes to adriantan.

1 ACCEPTED SOLUTION

Accepted Solutions
Jcook
MVP

Hello @rucysg 

 

What is your concurrency set to on the loop?

 Check this by clicking the 3 dots on your apply to each loop > Settings.

 

Concurrency should be set to 1 or off when using a Set variable action inside a loop.

 


What you can try is to change the Set variable to a Compose action. And see if the results are the same.


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

3 REPLIES 3
Jcook
MVP

Hello @rucysg 

 

What is your concurrency set to on the loop?

 Check this by clicking the 3 dots on your apply to each loop > Settings.

 

Concurrency should be set to 1 or off when using a Set variable action inside a loop.

 


What you can try is to change the Set variable to a Compose action. And see if the results are the same.


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Thanks @Jcook. The concurrency setting was on. I've turned it off and will see what happens when the flow runs.

 

Would I still need to use Compose instead of Set?

Jcook
MVP

@rucysg 

You only need to use Compose if you have Concurrency set higher than 1.

 

To give some context,

When using a Compose, you can use any concurrency setting, the downfall is anything inside the compose cannot be referenced outside the loop.

 

A Set variable can be referenced outside a loop, but concurrency cannot be on, or set to higher than 1.


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,391)