cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
drazel
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

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
learnerlink
Regular Visitor

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

v-yamao-msft
Community Support
Community Support

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.

Thanks for the tip. I will do that.

Lance
New Member

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.

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

Anonymous
Not applicable

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

@TschoofBAHthat was exactly the issue! Thanks for sharing!

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

Tharma_KS_95
Frequent Visitor

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

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

Kai_Oct
New Member

Solution was perfect! Thank you much:)

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

sbutt92
New Member

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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (35,243)