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 / Filename is a problem ...
Power Automate
Unanswered

Filename is a problem with Update File action but not Get File stuff Using Path actions

(0) ShareShare
ReportReport
Posted on by 164

Hi. I'm trying to upload a file from a list item attachment, or update it if it already exists. After thinking I wasn't configuring certain actions in my flow correctly, I now think that I have some filename problems to deal with.

Apparently, some actions can't handle a filename with a plus-sign ("+") in the title. (I work in a laboratory environment, and the task of controlling names of technical documents is near impossible.) This doesn't affect the initial upload, but it seems to be a big obstacle when checking if it already exists, i.e. using it (successfully) as a "File Identifier" parameter.

I'm using "Get File Metadata Using Path" action to see if the file exists. If it doesn't, it throws an error and I can use the Run After Previous Step settings on the next step to upload it as a new file (after it fails to get metadata) and similarly set the next step that to Update it instead (which is the only option when trying to replace an existing file.)

Everything goes well until I try to use the file name as part of the File Identifier when using the Update File action. As I said, I can use my Pathname variable that I created to update most files. But if there is a "+" in the title, the error tells me the file doesn't exist, and the filename shown in the resulting error message has the "+" replaced with a space. (I wouldn't normally think that's just a side effect of the JSON data, as possibly a red herring, but I've proved repeatedly that a filename sans "+" works fine.)

There's no problem checking for a file (i.e. using it for the "Path" value); but it clearly doesn't work using it as the semantically-ambiguous "File Identifier" in the Update File action (even though the path as a string works fine for that parameter otherwise.) Can anyone think of a workaround? Is there a way to encode that character in a friendly way, perhaps using the Replace function? Is there a list of other characters that will cause that problem? (It's not a Windows filename issue, since Office apps and SharePoint seem totally fine with it otherwise.) 

Thanks in advance for your help!

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @mboonie 

     

    Could you please post a screenshot of your flow? Also the sample filename which fails.

     

    Thanks

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard