Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Error: Apply to each is of type Object. The result must be a valid array.

(0) ShareShare
ReportReport
Posted on by 1,027

Dear Experts, 

I try to read a sharepoint managed metadata column for a keyword. But i get this error-message:

The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each')' is of type 'Object'. The result must be a valid array.

 

This is my flow:

 

PeKi72_0-1657003840170.png

Gr. P

  • Verified answer
    tom_riha Profile Picture
    10,127 Most Valuable Professional on at
    Re: Error: Apply to each is of type Object. The result must be a valid array.

    Hello @PeKi72 ,

    the error message tells you that the input of 'Apply to each 2' is wrong. On the first look it seems to me that Power Automate messed up the input of that action. I'd try to remove the 'Apply to each 2' and the 'Send an HTTP request...' actions and add them again, that might fix it.

    The problem is that the input of 'Apply to each 2' shouldn't be the 'Current item' (as that's the currently processed SP item = an object, not an array), it must be always an array e.g. a SharePoint multiple selection column, probably the 'Keywords'.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1