Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Power Automate Apply to each error

Hello,

 

I get an error when trying to use apply to each in my flow:

 

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerBody()?['entity']?['Power BI values']' is of type 'Null'. The result must be a valid array.

 

It seems that the data I'm trying to pass from the Power BI report never makes it to the flow.  I can see the data when I show as table:

dalchri_0-1629998964565.png

 

I'm troubleshooting this issue with a compose operation below.

 

dalchri_2-1629999368948.png

 

 

dalchri_1-1629999305968.png

 

I see several similar issues posted but can't get mine to work.  Any ideas?

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

When you trigger the flow,  DO NOT use the button below.  Only trigger the flow using the visualization added to the report.

 

dalchri_0-1630005905026.png

 

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Praying this works - I have been stuck with this for a ridiculous length of time!

CaioBrazil
Regular Visitor

Thank you very munch!!! I lost most time whit this problem.

Aurélie541478
New Member

Hello,

I have the same problem, do you find the solution?

Anonymous
Not applicable

When you trigger the flow,  DO NOT use the button below.  Only trigger the flow using the visualization added to the report.

 

dalchri_0-1630005905026.png

 

Thanks Microsoft, I spent ages debugging that run button, if it doesn't work they should remove it

I've coded in DAX, Python, HTML, SQL, and others. This type of Automate error behavior is why I think this is the trashiest dumpsterfire product MS has every pooped out.

Thank you very much!!!

 

Hours investigating this!!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors