Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Need Help! Error ExpressionEvaluationFailed - Microsoft Form to Word Template

Hi Im trying to create a flow that was in a post i found here:

but for some reason im getting the following error... please can you help me fix this

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/resourceData/responseId']' is of type 'Integer'. The result must be a valid array.



Super User II
Super User II

Hi @Jamiecharris 


The "When a new form is submitted" triggers each time a form is filled in, so there's no array. Each answer is a new trigger, so you don't need a "for each".


The error is indicating that the "for each" needs an array, but it's not getting one.


Put everything outside the for each, and all will work.


If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.




Helpful resources

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (72,755)