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

Community site session details

Session Id : YhodIN+r6ymkB0CpnwEGFE
Power Automate - Using Flows
Answered

Unable to process template language expressions for Action 'Apply to each 2' at line 0 and column 0 error due to array not being able to be selected

Like (1) ShareShare
ReportReport
Posted on 6 May 2022 20:08:36 by 5

Full error code: "Unable to process template language expressions for action 'Apply_to_each_2' at line '0' and column '0': 'The template language expression 'outputs('Start_and_wait_for_an_approval')?['body/responses']' cannot be evaluated because property 'body/responses' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'."

 

Explanation of the general process:

A line in sharepoint is created, If certain conditions are met an email is sent to a list of people based on variables inside the updated sharepoint. A 'Start and wait for an approval' is started, email is sent with a multiple choice question. One option is selected and there is a comment box. Once that email is responded to, the response fills in the same row that was initially updated in sharepoint.

 

My questions are:

 - What does it mean when it says line 0 column 0?

 -  It seems like its failing at the very end when it goes to select the responses from the email what would make it fail if it was working fine a week ago?

 - Do I have to assign an integer index to the array for it to select?

 

I can post pictures of the flow if needed

 

  • SeongKim Profile Picture
    9 on 09 May 2024 at 21:26:50
    Re: Unable to process template language expressions for Action 'Apply to each 2' at line 0 and column 0 error due to array not being able to be selected

    Having the same issue - essentially I'm trying to identify the second or third (or whichever #) person in a person field (SP List) and trying to display that person on another person column.

     

    "

    The template language expression 'triggerBody()?['Approvers']?[outputs('Compose')]?['Claims']' cannot be evaluated because property '2' cannot be selected.

    "

     

    Where am I going wrong?

     

    HELP!

  • Adwene Profile Picture
    24 on 07 Dec 2023 at 12:57:05
    Re: Unable to process template language expressions for Action 'Apply to each 2' at line 0 and column 0 error due to array not being able to be selected

    @CW , same her. did you manage to solve it?

  • zyrusdiaz18 Profile Picture
    2 on 12 Apr 2023 at 06:08:28
    Re: Unable to process template language expressions for Action 'Apply to each 2' at line 0 and column 0 error due to array not being able to be selected

    Hello,

    I have the same issue as you, my flow have been working for over a year now then suddenly this error came. May I ask what fix you came up with? 

    Thanks.

  • CW Profile Picture
    1,042 on 14 Feb 2023 at 00:30:30
    Re: Unable to process template language expressions for Action 'Apply to each 2' at line 0 and column 0 error due to array not being able to be selected

    Yes, not buggy at all!

    I've been using my flow for over a month fine, no issues then all of a sudden SURPRISE "inputs at line '0' and column '0':" errors. ??????????????

    NOTHING CHANGED. NO THING!!!

    Same with Power Apps and Automate. One day things work ok next, for some inexplicable reason it doesn't.

    Same with SharePoint Online.  For over a year a very very simple list is working fine then today, click New and SURPRISE, no Title field. No its not a cache issue, its a buggy microsoft issue, all of them.

  • Verified answer
    v-jefferni Profile Picture
    on 10 May 2022 at 09:57:00
    Re: Unable to process template language expressions for Action 'Apply to each 2' at line 0 and column 0 error due to array not being able to be selected

    Hi @EDH2022 ,

     

    This error message usually occurs when selecting dynamic values from a nested array, i.e. the 'outputs('Start_and_wait_for_an_approval')?['body/responses']'. 

     

    To solve the issue, you can initialize string variables, in the Apply to each control of the response details append response dynamic values to the variable. You need to note that responses from the approval are from multiple approval recipients so you will have to combine them together and populate into a single column of SP list item.

    vjefferni_1-1652176606839.png

     

    The expression I framed is to combine the responder emails with change line and populate to the Title column of SP list.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

  • MYSTERIO9000 Profile Picture
    2 on 08 May 2022 at 03:01:52
    Re: Unable to process template language expressions for Action 'Apply to each 2' at line 0 and column 0 error due to array not being able to be selected

    Please someone reply to this.  I am having the exact same issue!

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete