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 / Excel action Get Table...
Power Automate
Unanswered

Excel action Get Tables error, string is invalid for File field

(3) ShareShare
ReportReport
Posted on by 48

I've encountered a behaviour I don't understand with the Excel action Get Tables. I'm aware that this is a preview action, thus it's expected to raise issues.

 

I manually fill the Location, select the Doc Library from the UI dropdown, the brows for the file location through the UI dropdowns. This correctly grabs the file.

 

I need a flow that uses logic to determine which Excel file it needs from a Library, and then get that file from the Library. I created a SharePoint list that contains 3 columns, for the Location address, Doc Library name and File name.

 

If I then fill in the Get Tables fields with dynamic contect from this list, I get an error:

  

{
"status": 400,
"message": "The parameter 'file' has an invalid value '/Translation.xlsx'."
}
Translation.xlsx being the file name.
 
I then tested the Get tables action with Location and Doc Library manually selected, and the File field filled out through dynamic contect, which again triggered the error.
 
Finally I tried typing out the file name in the field, which again triggered the error.
 
From all this I assume that the File field is the only one that needs some kind of object type passed to it, instead of a string. My question now is if anyone understands the issue and has a workaround for this limitation, if I could Compose a string into the object type the File field expects.
Categories:
I have the same question (0)
  • Carl Esp Profile Picture
    15 on at

    I have exactly the same problem.

  • AlanPs1 Profile Picture
    2,471 on at

    Would you mind posting a picture and some detail of your Flow and I will attempt to recreate?

  • Carl Esp Profile Picture
    15 on at

    Hi!

     

    This is what I tried to do in Flow:

    The problem is that the "file" input ("archivo") does not accept a variable.

     

    I finally found an alternative way of doing this. Just a little trickly, but working at the end..

  • MateiC Profile Picture
    48 on at

    I am interested in the alternative solution you found, if you could post it.

  • moutinhoabreu Profile Picture
    172 on at

    I've exactly the same problem with the field "file" in all excel Actions when using dynamic data.

     

    Every time you try to fill the file location thtough a dynamic field it returns an error: 

    The bold is the archive name,.

    {

    "status": 400,
    "message": "The parameter 'file' has an invalid value '/Documentos Partilhados/IT/Templates Mbc/Mapas recapitulativos 12.xlsx'."
    }
     
    My scenario is:
     
    1. Blank excel in a sharepoint location
    2. get the content from blank excel - Sucesss
    3. create a copy from that content. (dynamic data from previous action) - Sucesss
    4. Get excel worksheets - Failed with error
    5.  Fill in table with data from an SQL data.  - Failed with error

     Does anyone was able to solve this issue ?

    flow 1.pngflow 2.png

  • Carl Esp Profile Picture
    15 on at

    I solved it in a weird way:

     

    1. When a file is created in a sharepoint library...
    2. Create a new file in another sharepoint library (using the blob object the step 1 gives to you). This file will work as a temporal file, with a pre-fixed name that it's always the same file name.
    3. Browse rows of a excel file. I created previously that temporally file, so this time this action works well, and will work also when the flow is executed.
    4. Filter matrix... (to select the rows I want based on the value of one column)
    5. For each .... Insert a new item in a sharepoint list

    Something like this:

    Captura de pantalla 2018-12-27 a las 17.09.57.png

     

    And it works Smiley LOL 

  • moutinhoabreu Profile Picture
    172 on at

    Could you show the excel action "Enumerar las filas de una tabla" aka Get rows of a table.

    Not sure if i understood .

     

    Trigger: Everytime an file is created in a specific location

    Action: Create a file with dynamic content file from trigger.

    Action: Get rows of a table in excel. " but the excel file was created manually" 

    (...)

    But at the end you're not using dynamic fields on the excel action ?

  • Carl Esp Profile Picture
    15 on at

    The key is that, in step #2, you overwrite always the same file.

     

    In step #3 you always do a query over the same excel file name, but different contents, as the step #2 overwrites that file with the one in step #1

     

    I'm sorry if I can't explain better this solution

  • moutinhoabreu Profile Picture
    172 on at

    It seems a good workaround while this feature isn't in place.

     

     

    Gracias !!!

  • teqs Profile Picture
    103 on at

    Any news on this?

    { "status": 400, "message": "The parameter 'file' has an invalid value '/xxx.xxx/yyy.zzz.xlsx'." }

    Even with a 100% correct file path. I tried a lot of things to solve, but nothing works. Still no real solution for this available?

     

    I have really problems in my solutions without getting done to use a dynamic file path. I hope for a solution. 😞

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard