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 :
Power Automate - Building Flows
Answered

Fill String Array with column of excel file / The template language expression cannot be evaluated because property cannot be selected Array elements can only be selected using an integer index.

(0) ShareShare
ReportReport
Posted on by 23

Unable to process template language expressions for action 'Apply_to_each' at line '0' and column '0': 'The template language expression 'array(outputs('List_rows_present_in_a_table')?['body/value']?['IT Project Manager'])' cannot be evaluated because property 'IT Project Manager' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'.

I get this error message. I have initialized a string array which i want to fill with a column of an excel table.
The following is the step/action where the error occurs. All i want is to get through all rows of the column "IT Project Manager" = names, and get them into my String array in a redundant way so that every name is only one time given in the array.


So basically i am asking you how to export a column of an excel table into an string array?


2023-05-31 13_04_07-Edit your flow _ Power Automate und 4 weitere Seiten - Geschäftlich – Microsoft​.png

I have the same question (0)
  • Verified answer
    rzaneti Profile Picture
    4,159 Super User 2025 Season 2 on at
    Re: Fill String Array with column of excel file / The template language expression cannot be evaluated because property cannot be selected Array elements can only be selected using an integer index.

    Hi @fokumus007 ,

     

    The error is happening because you are trying to use an "apply to each" loop to a string, when the action requires an array as input.

     

    Based on your description and on the images that you shared, I see that your first loop is fine, as you are basically iterating the "rows from an Excel table". For the second loop, however, it looks like you are trying to iterate some field from one of those Excel rows, which usually is a string. 

     

    As the "apply for each" loop will return you each row from the table, you will be able to access each column value from the dynamic content (or via expressions, if you prefer). 

     

    For example, take this Excel table: I will try to access all values form column "A" in Power Automate:

    rzaneti_0-1685531219706.png

     

    After run the "List rows present in a table", you can click in "Click to download" in the outputs section of the action to see how Power Automate is reading the data from your table

    rzaneti_1-1685531298602.png

     

    This is my output, and you can see that each row is stored inside "value" as an individual object. So we can assume that the "value" property (that one that you iterated in your flow) is an array of objects. 

    rzaneti_2-1685531354708.png

     

    When you use your the "value" from "List rows present in a table" as input for the "apply to each" action, you will be able to access the individual properties of each row inside the loop (dynamically or via expressions). In my case, I just set the "A" property (which will return the value from column "A" for the currently iterated row) to a variable.

    rzaneti_3-1685531613718.pngrzaneti_4-1685531634529.png

     

    Finally, in my flow run, you will see a total of 5 iterations in my loop (which is expect, as I have 5 rows in the Excel table), and each one will be accessing the value from "A" column for the respective row (in the case below, the captured value was 7, which can be found in the 3rd row):

    rzaneti_5-1685531710369.png

     

    Let me know if it works for you or if you need any additional help. If for any reason you need to "iterate a string value", let me know and I show you how to split it to transform it into an array and allow the looping.

  • fokumus007 Profile Picture
    23 on at
    Re: Fill String Array with column of excel file / The template language expression cannot be evaluated because property cannot be selected Array elements can only be selected using an integer index.

    Great explanation, thanks a lot!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard