web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

SharePoint Get File Content Not Working

(0) ShareShare
ReportReport
Posted on by 239

Hi, 

I am trying to get file content for a series of documents in a SharePoint folder and it keeps failing and returning this error: 

{
 "status": 404,
 "message": "File not found\r\nclientRequestId: 243318bb-489f-40b3-8107-2cc7f3869222\r\nserviceRequestId: 243318bb-489f-40b3-8107-2cc7f3869222"
}

 

When looking at the file identifiers and comparing them to the copy link from SharePoint, the main differences are that anywhere there is a space it shows "%2b" identifier and in the link it is "%20". And the links have a code after. What do I need to do to correct this issue? 

 

Map: Shared%2bDocuments%252fTravel%2bReimbursements%252fTR-00000062%252f10832%2bCrushed%2bGrape%2bDr.pdf

/Shared%20Documents/Travel%20Reimbursements/TR-00000062/10832%20Crushed%20Grape%20Dr.pdf?csf=1&web=1&e=9DQddl

 

Hotel: Shared%2bDocuments%252fTravel%2bReimbursements%252fTR-00000062%252fHotel-Receipt-Testing.png

Shared%20Documents/Travel%20Reimbursements/TR-00000062/Hotel-Receipt-Testing.png?csf=1&web=1&e=Q9Bxfs

 

 

Excel: Shared%2bDocuments%252fTravel%2bReimbursements%252fTR-00000062%252fTravel-2022%2bTemplate.xlsx

Shared%20Documents/Travel%20Reimbursements/TR-00000062/Travel-2022%20Template.xlsx?d=wfe7c206c28f54f4ab23c5d9a561a01d0&csf=1&web=1&e=u1fGTC

 

gfeldhake_1-1675881454178.png

 

 

I have the same question (0)
  • Andrew_J Profile Picture
    1,962 Moderator on at
    Re: SharePoint Get File Content Not Working

    @gfeldhake 

     

    Lest look at the first one %20, these are spaces between the file names or SharePoint site name, to get rid of those you need use _ or - in those and in your lists, they should not be an issue.

     

    As for the flow, you should have something like the following

    Andrew_J_0-1675882962973.png

     

    I hope that helps.

     

    Regards,

     

    Andrew

     

  • GF-02121351-0 Profile Picture
    239 on at
    Re: SharePoint Get File Content Not Working

    @Andrew_J

     

    Thank you for the reply,

     

    1. Do you know of a way to remove those in a flow? This flow will be used by a lot of staff, and it is not feasible for me to make sure their file names do not have blanks. 
    2. Are "Get Attachment Content" and "Get File Content" action synonymous or should I switch? 
      1. In your variable you have "ContentBytes" instead of "fileContent", is there a reason for that?  

    Gwyn

  • Andrew_J Profile Picture
    1,962 Moderator on at
    Re: SharePoint Get File Content Not Working

    @gfeldhake 

     

    I do not know how to get rid of the %20 issue, other my know how.

     

    The image I showed from one of my flows, so file "Get Attachment Content" and "Get File Content" action is the same, still with the "file content" for your flow.  

     

    As for the"ContentBytes" instead of "fileContent" in my flow I wanted to test the number of attachments in the row of a list.  If it came back with two then the flow would continue and send both files as part of an attachment to an email.  So stick to what you want.

     

    Again I hope that helps a bit.

     

    Regards,

     

    Andrew

     

     

  • Verified answer
    GF-02121351-0 Profile Picture
    239 on at
    Re: SharePoint Get File Content Not Working

    I ended up taking this part of the flow and creating a new one and it worked. 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 650 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 341 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard