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

Adding Rows to a Dynamic Excel File

(2) ShareShare
ReportReport
Posted on by

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
    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
    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
    48 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

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard