SharePoint Create File action does not support certain characters

%3CLINGO-SUB%20id%3D%22lingo-sub-2626377%22%20slang%3D%22en-US%22%3ESharePoint%20Create%20File%20action%20does%20not%20support%20certain%20characters%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2626377%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20use%20the%20Create%20File%20action%20in%20Power%20Automate%20with%20SharePoint%20Online.%20However%20the%20operation%20fails%20with%20the%20error%20%22File%20not%20found%22%20if%20the%20filename%20includes%20%23%20or%20%25%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBoth%20of%20these%20are%20valid%20characters%20in%20SharePoint%20file%20names.%20The%20Update%20File%20action%20works%20fine%20with%20filenames%20that%20contain%20these%20characters.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20tried%20using%20the%20encodeUriComponent%20function%20on%20the%20filename.%20This%20does%20allow%20the%20file%20to%20be%20created%2C%26nbsp%3B%20but%20%23%20and%20%25%20characters%20are%20replaced%20with%20%2523%20and%20%2525.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20also%20noticed%20that%20the%20characters%20%7B%20%7D%20and%20~%20get%20replaced%20with%20_%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20suggestions%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2626377%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECreate%20File%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Contributor

I'm trying to use the Create File action in Power Automate with SharePoint Online. 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. The 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 _

 

Any suggestions? 

0 Replies