
Announcements
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?
Hi @ivan_wilson :
You can create the file first, and then rename it with http request:
The Result
I think this link will help you a lot:
Simple HTTP request to rename a file in SharePoint with Power Automate
Best Regards,
Bof