web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create File Invalid Te...
Power Automate
Answered

Create File Invalid Template

(3) ShareShare
ReportReport
Posted on by 15

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. 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • learnerlink Profile Picture
    2 on at

    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 Profile Picture
    on at

    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

  • drazel Profile Picture
    15 on at

    Thanks for the tip. I will do that.

  • Lance Profile Picture
    2 on at

    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.

  • Verified answer
    TschoofBAH Profile Picture
    154 on at

    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.

  • Community Power Platform Member Profile Picture
    on at

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

  • jamesg Profile Picture
    7 on at

    @TschoofBAHthat was exactly the issue! Thanks for sharing!

  • BI_Mac Profile Picture
    6 on at

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

  • Tharma_KS_95 Profile Picture
    12 on at

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

  • Community Power Platform Member Profile Picture
    on at

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard