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 / 'The inputs of templat...
Power Automate
Unanswered

'The inputs of template action 'Create_item' at line '1 and column '2936' is invalid. Action 'For_each' must be a parent 'foreach' scope of action 'Create_item' to be referenced by 'repeatItems' or 'items' functions.'.'.

(1) ShareShare
ReportReport
Posted on by 9

Hi everyone, I am really stuck on something and will be grateful for any advices on how to improve my flow. I want to copy a SharePoint list from one site to another. There are 7 multi-value columns giving the details of contact persons. I first use "Get Items" to select the list from which I want to copy. After that I use "Select" action for all the multivalue columns one by one. But it automatically creates For Each two times. As in the screenshot below:

alish_ali_0-1716283608843.png

After that, I add a "Create Item" action and choose the "For Each" created above respectively. 

alish_ali_1-1716283714564.png

But when I try to save it, it is giving me an error that: Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Create_item' at line '1 and column '2936' is invalid. Action 'For_each' must be a parent 'foreach' scope of action 'Create_item' to be referenced by 'repeatItems' or 'items' functions.'.'.

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @alish_ali 

     

    Its the mapping issue under the Create_Item action step. Do you have multi-select columns you are trying to map under the Create Item action step.

     

    See this thread and this might be useful.

     

    Solved: Re: Action 'X' must be a parent 'foreach' scope of... - Power Platform Community (microsoft.com)

     

    Thanks

  • alish_ali Profile Picture
    9 on at

    yes, there are 7 multi select columns and this is why i used select action. The thread you sent seems relevant but it is about html table. How can I do it in a way without creating VarHTML

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @alish_ali 

     

    Show me the steps of how you creating the select action step and the mapping of the fields.

     

    Meantime watch my tutorial video

     

    Power Automate - How To Update SharePoint Choice Column (youtube.com)

     

    Thanks

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