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 / SharePoint Create File...
Power Automate
Answered

SharePoint Create File action does not support certain characters

(0) ShareShare
ReportReport
Posted on by 85

I'm trying to use the Create File action in Power Automate with SharePoint Online to copy a file from one library to another. However the operation fails with the error "File not found" if the filename includes # or % 

 

Both of these are valid characters in SharePoint file names. I don't get any errors when manually adding files with these characters in the file name. The SharePoint Update File action works fine with filenames that contain these characters. 

 

I've tried using the encodeUriComponent function on the filename. This does allow the file to be created,  but # and % characters are replaced with %23 and %25. 

 

I've also noticed that the characters { } and ~ get replaced with _ when you use the Create File action.

 

Any suggestions? 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @ivan_wilson :

    You can create the file first, and then rename it with http request:

    vbofengmsft_1-1629192340139.png

    The Result

     

    vbofengmsft_0-1629192270177.png

    I think this link will help you a lot:

    Simple HTTP request to rename a file in SharePoint with Power Automate 

    Best Regards,

    Bof

     

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