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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error in adding rows f...
Power Automate
Unanswered

Error in adding rows from excel table to list

(2) ShareShare
ReportReport
Posted on by 62
Hi community.
 
I have a flow adding rows to a list from an excel table and I keep receiving this error:
 
"The execution of template action 'For_each' failed: the result of the evaluation of 'foreach' expression '@outputs('List_rows_present_in_a_table')?['body']?['body/value']' is of type 'Null'. The result must be a valid array.
 
Here's my flow:
 

The flow action 'Create table' creates a table and assigns the following column headers: 'Project', 'Revision', 'Code' and 'QTY'.
 
Here's the formula I've used in the Create item action to reference, for instance, the Project: items('For_each')?['Project'].
 
 
Thank you for any help you can give!
Categories:
I have the same question (0)
  • trice602 Profile Picture
    16,239 Super User 2026 Season 1 on at
    Hi,
     
    The root cause here is your table in Excel is empty, there are no rows of data to create the item from (based on your flow example). I recommend you go back and look at the output of your List rows present in a table.  Based on the error, it is blank.
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     

     
  • Gilmour1 Profile Picture
    62 on at
    Hi @trice602,
     
    I made sure that my excel has no empty rows, and it doesn't (there is a header row, and is correctly filled out with column names). Still getting the error though! Any ideas? 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard