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 / Get 'File Not Found' E...
Power Automate
Unanswered

Get 'File Not Found' Error when Create File with # in the File Name

(1) ShareShare
ReportReport
Posted on by 2

When a file is created in SharePoint site A, the flow will copy and create the file in SharePoint site B.

If there is a '#' in the file name, create file job will fail with error 'File Not Found'.

 

e.g. PDF file

pa-create-file-not-found-pdf.jpg

 

e.g. xls file

pa-create-file-not-found-xls.jpg

 

When '#' was removed from the file name, the flow completed successfully, the file was copied and created in SharePoint site B.

Please help to advise what could be the root cause and work around for this.

Thank you.

Categories:
I have the same question (0)
  • ScottVPeters Profile Picture
    36 on at

    Hello @wuyow I hope you are well! Did you ever find a solution for this?

  • ArashAghajani Profile Picture
    13 on at

    Hi @wuyow ,

    I just tried to implement your scenario in my dev environment, but I got the same File Not Found error when I used "Create File" action. If I'm using "Copy File" action it worked correctly. Is there a reason why you aren't using the "Copy File" action instead of "Create File"?


    (As far as I remember, in SharePoint CSOM code when we tried to get a file, we should call GetFileByServerRelativePath() method instead of the GetFileByServerRelativeUrl(). Because the second method does not support #, % characters an will raise File Not Found error. I think there is a relationship in the backend between that action in Power Automate and this method in SharePoint and it may cause this issue!)

     

    Arash

  • powerdev-a Profile Picture
    25 on at

    There are many scenarios why Copy File is not an option, for example, when Copying and/or Moving file from one library to another but have different metadata setup, it will throw and error. So Create file is the best way to do. But thank you for the insights.

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard