cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ivan_wilson
Advocate II
Advocate II

SharePoint Create File action does not support certain characters

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? 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

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

 

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

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

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,128)