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

Getting "InvalidTemplate" error on any kind of "create file" actions - Sharepoint, SFTP, OneDrive

I'm trying to create a flow that simply uploads a csv file attachment to a server via sftp.
 
Since Thursday I can't get any 'create file' actions to run without error. I have deleted and recreated a number of flows to try an alternative way to getting the files to where I need them to go.
 
The most recent attempt has the flow ID: 4fe94282-df5d-4fc1-8a61-483ebfce2add
Same issue with this flow ID: bec8eddd-6f5f-49b7-bb85-a5420314bcf3
 
(The only difference is the 'name' of the file - one names it with the original attachment name, the other with the subject of the email - my desired option).
 
I have also attempted similar flows using Sharepoint and OneDrive for Business as the targets with identical errors. In fact, the only success I've had in recent times was creating a flow from template to upload email attachments to Sharepoint. This worked once.. until I then edited the flow to use "subject" as the name of the file instead of "name" and it began failing again.
 
The error message I'm getting every time is as follows:
 
Reason
  • Code
    InvalidTemplate
  • Message
    Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '11': 'The template language function 'base64ToBinary' expects its parameter to be a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#base64ToBinary for usage details.'.
2 REPLIES 2
Community Support Team
Community Support Team

Re: Getting "InvalidTemplate" error on any kind of "create file" actions - Share

Hi Learnerlink,

 

I have seen a similar thread in another thread and I suggested the customer to send a feedback.

 

The thread is:
https://powerusers.microsoft.com/t5/Flow-Forum/Create-File-Invalid-Template/m-p/5545#M1212

 

I also found that the file can be saved from SharePoint Online library to OneDrive, or from OneDrive to Google Drive with a flow. As a workaround, you can save files to SharePoint library, then use a flow to save it to OneDrive or other destinations.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
RRaijmakers
Level: Powered On

Re: Getting "InvalidTemplate" error on any kind of "create file" actions - Sharepoint, SFTP, OneDrive

Sorry.

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Coming Soon: T-shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors
Users online (6,194)