cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rarroyo1
Helper I
Helper I

How to use the File system Connector, Copy File

I'm trying to copy a file from OFB to my local file share.  I've set up an on-premise gateway and use "File System / Copy File".  I get error messages when flow runs: 

 
InvalidTemplate. Unable to process template language expressions in action 'Copy_file' inputs at line '1' and column '2689': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_filesystem_1']['connectionId']' cannot be evaluated because property 'shared_filesystem_1' doesn't exist, available properties are 'shared_sharepointonline, shared_onedriveforbusiness'. Please see https://aka.ms/logicexpressions for usage details.'.
 
Can someone share how they set up the Copy File parameters?
 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

I had added the File System Connector after I had already created the Flow and was testing it by using data from previous runs.  I needed to manually trigger the Flow again and test using the new data for it to work.

View solution in original post

5 REPLIES 5

Hi @rarroyo1 

 

Are you using powerapps to trigger the Flow? (Just by looking at the error statement I am guessing you are). In that case, you must have added an action after adding the flow to a powerapps control. This is a known issue for such cases and the remedy is to remove the flow from the control in powerapps and re-add it over there. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

i'm not using powerapps

 

Hi @rarroyo1 

 

Alright! Can you post a screenshot of the Flow and the action on which the error is popping? That way we might be able to better identify the issue and assist you with this. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

I discovered that Copy File just copies a file with Source and Target on my local file system.  It doesn't download a file from SharePoint on OneDrive to my file system, which is what I wanted to do.

I had added the File System Connector after I had already created the Flow and was testing it by using data from previous runs.  I needed to manually trigger the Flow again and test using the new data for it to work.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (2,775)