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

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
TschoofBAH
Level: Powered On

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

10 REPLIES 10
learnerlink
Level: Powered On

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

Community Support Team
Community Support Team

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
drazel
Level: Powered On

Re: Create File Invalid Template

Thanks for the tip. I will do that.

Lance
Level: Power Up

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.

TschoofBAH
Level: Powered On

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

JJtheKiwi
Level: Power Up

Re: Create File Invalid Template

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

jamesg
Level: Power Up

Re: Create File Invalid Template

@TschoofBAHthat was exactly the issue! Thanks for sharing!

BI_Mac
Level: Powered On

Re: Create File Invalid Template

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

Tharma_KS_95
Level: Powered On

Unable to check if a value is null or not.

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

MikeJuliette
Level: Powered On

Re: Create File Invalid Template

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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 175 members 3,422 guests
Please welcome our newest community members: