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 / Pulling all Excel file...
Power Automate
Answered

Pulling all Excel files into one

(1) ShareShare
ReportReport
Posted on by 26
Hello,
 
I'm having trouble getting Power Automate to read in all of my excel files from a folder. They are all the same format but not as tables. I only want the first two columns (planning to use the first column then bind on the second column from each sheet to make a master table).
 
My issue is from calling each excel. I can get it to list the files (debug to list files) but then in apply to each it keeps giving me errors. 
 
Here's my tree
 
 
And here's my Get file content (note the site address is the same one as I used for Get Files (properties) - it's the sharepoint site, so 3 folders above the folder I want to pull everything from.
 
 
I feel like I've tried everything, but this also feels like a simple thing to do - what could be causing my Get File Content to break?
Categories:
I have the same question (0)
  • PieterVeenstra Profile Picture
    33 on at
    You can't use the get file content on an excel file. Well actually, you probably can but it will not give you any content that you can read.
     
    If your excel files are not using tables then you will have to use Microsoft Graph to read the cells in your excel.
     
     
     
  • Verified answer
    MParikh Profile Picture
    521 Super User 2026 Season 1 on at

    Looking at the screenshots, I can see the issue. The "Get file content" action is failing with a BadRequest error because you're using items('apply_to_each')? ['ID'] as the File Identifier, but that's the SharePoint list item ID, not the file path.


    The Fix:
    In the "Get file content" action, change the File Identifier from:

    items('apply_to_each')?['ID']

    To one of these (depending on your SharePoint connector version):

    items('apply_to_each')?['Id']

    or more reliably:

    items('apply_to_each')?['{Identifier}']

    or the full path:

    items('apply_to_each')?['{Path}']

    Why this happens:
    The "Get files (properties only)" action returns several ID-related fields that look similar but serve different purposes. The ID field is the SharePoint list item ID (a number), while the {Identifier} or Id field contains the actual file identifier that the "Get file content" action expects.


    Quick way to verify:
    Check your "Debug to list files" Compose action output. Look for fields like:

    • {Identifier} - encoded file identifier (recommended)
    • {Path} - full file path
    • Id - file ID (note the lowercase 'd')
    Additional tip for your Excel scenario:
    Since you mentioned the Excel files aren't formatted as tables, be aware that after getting the file content, you'll need to use "Run script" with Office Scripts or parse the file differently. The standard "List rows present in a table" action only works with properly formatted Excel tables.

     
    Thank you! 
    Proud to be a Super User!
    📩 Need more help?
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard