web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter array issue wit...
Power Automate
Unanswered

Filter array issue with Apply to each

(0) ShareShare
ReportReport
Posted on by 73

All,

 

I am having trouble combining this filter array to my current flow. I am receiving data from SQL table and inserting it into SharePoint list.

PowerAppsUser99_0-1678124773581.png

 

 

This is my filter array step that I would like to use the Compose_2 output and use it for my SharePoint list.

 

PowerAppsUser99_1-1678124837452.png



This is the error I receive when trying to use the Output of compose_2

 

PowerAppsUser99_2-1678124935893.png



Error message:

 
Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Compose_3' at line '1 and column '8150' cannot reference action 'Compose_2'. The action 'Compose_2' is nested in a foreach scope of multiple levels. Referencing repetition actions from outside the scope is supported only when there are no multiple levels of nesting.'.'.

 

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @PowerAppsUser99 ,

    based on the error message I think that it doesn't like that you're collecting the outputs from 'Compose 2' that's inside 2 different loops. I'd try to use 'Select' or a variable to replace this "workaround" where you take the output of a 'Compose' after a loop to get all the outcomes at once.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 639

#2
Valantis Profile Picture

Valantis 392

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard