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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error: Apply to each i...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 1,042

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

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

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard