Hi All,
I keep getting this error.
The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@outputs('Update_item')?['body/TermOwner']' is of type 'Object'. The result must be a valid array.
I have not changed anything in my columns.
Please help!
how i can put 2 output in my loop for take the 2 json format?
I think this error is here for that.
looks like you are trying to perform an action for arrays using a string variable. You can convert a string to an array just by using the array(<variable>) function as an expression with your <variable> [DUEDATE..]
or createArray(split(<variable>,'<separator>')) if your variable contains more than one element [DUEDATE..]
I have this similar problem. I am new at Power Automate. Please I am working to fix this for long time. Thanks
@Mamzy Ahh OK the Flow was Corrupt. I am glad that the problem has been resolved.
Have a wonderful weekend 🙂
Hi @CFernandes,
I ended up having to recreate the flows again and this seemed to solve the problem.
Thanks
I am not sure if this will work but worth a try, just decorate the 'Team Owner' with array() function.
Hi Yes it returns an array.
It seems something has happened to the term owner column that was originally created.
@Mamzy Can you confirm if 'Team Owner' property returns an array.
Add a compose action and add the 'Team Owner' property to it. See if a Apply to each loop gets added around it automatically. I have a feeling 'Team Owner property is not an array,
@Mamzy The result must be a valid array.
'@outputs('Update_item')?['body/TermOwner']' is of type 'Object'.
Please share the screenshot of your Power Automate(Flow) so that we can assist you better.
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2