cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Wheatcroft
Level: Powered On

Copy file in SharePoint and update rows

Hi, 

 

I'm trying to create a flow that copies an excel file from a template and updates rows of the copied excel file with responses from a form (trigger). 

 

The part I am struggling with, is the excel update row - I can't seem to use dynamic data for the file name, without getting a "Cannot evaluate the parameter 'file' at design-time; it is empty or has a runtime expression" error. 

 

Is there any other way I can update this file.

 

Screen shots below...

 

Thank you 🙂 

 

Flow Error.PNG

2 REPLIES 2
Community Support Team
Community Support Team

Re: Copy file in SharePoint and update rows

Hi @ Wheatcroft,

 

Do you want to insert row in to a new copy excel file in sharepoint library?

The error told that the flow couldn’t evaluate the parameter that you filled in the “File” field.

I have made a test and the issue is confirmed on my side. if use the dynamic content of the file name in “File” field “Add a row into a table” action of “Excel (Business)” connector, when fill in some value in the table field, the action would pop-up the error “Cannot evaluate the parameter 'file' at design-time; it is empty or has a runtime expression.”

 

You could select a file in the “File” field using the File picker of the field.

Using the dynamic content file name in the “File” field “Add a row into a table” action of “Excel (Business)” connector is not supported in Microsoft flow currently. If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Regards,
Alice Zhang

pepevelez
Level: Powered On

Re: Copy file in SharePoint and update rows

I'm struggling with the same issue.  I cannot use  Excel - Add a new row connector because It needs the file path to the actual file. It doesn't work if you just created that file (with a file that doesn't exit yet)

 

Is there a way to work around this  Wheatcroft?

 

 

Cheers,

 

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 243 members 5,100 guests
Please welcome our newest community members: