cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Create File Invalid Template

Creating a simple mail attachment to FTP flow. Having a new issue.

I have three of these running without issues on this account. Created a couple of weeks ago.
Im currently creating the same setup for a customer, with a newly created account. With the same configuration i get an error at my FTP Create File step. 

I observed that this user has a couple of new features. Example new types of steps (Apply to each, do until, scope).
I don't have these on my other account. And the flow is automaticly converted to an Apply to each step for the attachments.


The flow creates this error for each attachment in the email

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.'.

 

 

Screenshot of my create file step. 

Flowscreenshot.PNG

Appreciate any tips. 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Advocate III
Advocate III

Re: Create File Invalid Template

Hate to revive an old thread, but wanted to put this out there.....you have to ensure that the "Include Attachments" option is set to yes in the outlook email step.

View solution in original post

13 REPLIES 13
Highlighted
Regular Visitor

Re: Create File Invalid Template

I'm having this same issue, only it's on existing flows that I've edited since Tuesday.

 

Have tried create OneDrive for Business, Sharepoint, and SFTP upload from an email attachment. All fail with this same error code.

 

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'.

Highlighted
Community Support
Community Support

Re: Create File Invalid Template

Hi Drazel,

 

I created several simple flows to save attachment to OneDrive, Google Drive, SharePoint Online, Dropbox, FTP Server when a new email arrived. But all the flows were failed and the same error message occurred. Below is a screenshot of one of my flow “create file to Dropbox”.

88888888888.PNG

 

For this issue, you could send a feedback by using the smile icon in Flow.
smile icon flow.PNG

 

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.
Highlighted
New Member

Re: Create File Invalid Template

Thanks for the tip. I will do that.

Highlighted
New Member

Re: Create File Invalid Template

I run into the same issue. The following workaround works for me:

1. Create a new flow from the template (e.g. "save email attachment to sharepoint")

2. Modify the created flow according to your requirements.

 

HTH.

Advocate III
Advocate III

Re: Create File Invalid Template

Hate to revive an old thread, but wanted to put this out there.....you have to ensure that the "Include Attachments" option is set to yes in the outlook email step.

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Create File Invalid Template

TschoofBAH created an account just to say thanks. This saved me ALOT of time and stress

Highlighted
New Member

Re: Create File Invalid Template

@TschoofBAHthat was exactly the issue! Thanks for sharing!

Highlighted
Advocate I
Advocate I

Re: Create File Invalid Template

TschoofBAH.......you're a hero!

Highlighted
Frequent Visitor

Unable to check if a value is null or not.

It is failed to check the value of the variable is null or not.

Highlighted
Regular Visitor

Re: Create File Invalid Template

Enabling Include Attachments as per TshoofBAH below.  Didn't work but the above workaround did.

Highlighted
New Member

Re: Create File Invalid Template

Solution was perfect! Thank you much:)

Highlighted
Frequent Visitor

Re: Create File Invalid Template

It didn't work for when a new email arrives in shared mail box. I still get the same error.

Highlighted
New Member

Re: Create File Invalid Template

Hi,

 

Im having the same issue but your resolution to having the email attachment option for yes to accepting them isn't working.

Please help me...…...

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Top Kudoed Authors
Users online (7,009)