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 / Error in adding rows f...
Power Automate
Unanswered

Error in adding rows from excel table to list

(2) ShareShare
ReportReport
Posted on by 60
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
    15,404 Super User 2025 Season 2 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
    60 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

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 507 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 267 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard