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 / Adding Rows to a Dynam...
Power Automate
Answered

Adding Rows to a Dynamic Excel File

(2) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

I am creating a Power Automate flow with following requirement. 

Whenever a Microsoft form is submitted with set of responses, I need to capture response fields and insert to an Excel file. This Excel file is not a static file (Not an already available file in SharePoint or OneDrive). This Excel file will be a copy of a static base template file (Already available file in SharePoint or OneDrive). 

nsiva_1-1606847978004.png

The problem I face is, when I set required fields of Add a row into a table activity it prompts with following error.

 

No table was found with the name 'Table1'.

 

But, when I check the file created there exists required table. This is not the case if I try to add the values into a table in an already available Excel file. 

Scenario 1 - Checking in an already available Excel file

nsiva_1-1606844601566.png

Scenario 2 - In a dynamically created Excel file

nsiva_2-1606844696716.png

The only difference I see here is the File field value. This field's value contains a forward slash (/) in Scenario -1 and no such forward slashes in Scenario - 2. I tried to insert a forward slash in setting the File field as well, it shows following error when I try to do it.

 

The parameter 'file' has an invalid value '/File-Name.xlsx'.

 

What am I doing wrong here? Any help would be highly appreciated.

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I was able to fix the error by setting File filed as below. (With Id of the file created - Not the name)

    nsiva_1-1606847406330.png

    It is also worthy to note that we can use get tables activity to get the table name as well (instead of providing as Table1). 

  • Verified answer
    Anugrah Profile Picture
    Microsoft Employee on at

    Hello @Anonymous Yes, You can update the Excel table by passing the ID to the File Field in the Flow Actions, rather than going for the Name of it. This is as per the logic written.

  • Karel (ACSW) Profile Picture
    52 on at

    Since the Excel-connector has been updated (and therefore doens't allow body-entry), I found a great solution anno 2023 to solve this issue.

     

    1. Take this worksheet/table as an example, I already know what the tableheaders are because it's a template that is duplicated in my flow:

    KarelVGH_0-1679934341928.png

     

    2. You simply map the tableheaders inside a JSON object, then you add this object in the 'Row' parameter:

    json_object_add.png

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 1,027

#2
Valantis Profile Picture

Valantis 809

#3
Haque Profile Picture

Haque 645

Last 30 days Overall leaderboard