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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / OneDrive Get file cont...
Power Automate
Suggested Answer

OneDrive Get file content returns 404 not found

(1) ShareShare
ReportReport
Posted on by 85
Hello,
 
So I've had a perfectly running flow that takes attachments from MS Forms and attaches them to an approval. The flow was not used for a month or so but now I found out it always fails on retrieving the file with the OneDrive "Get file content" with an error 404 - The resource could not be found.
 
I'm grabbing the file ID with a JSON(get_details) and then putting this variable to the OneDrive Get File content. 
 
There were no changes to the flow and it worked before.
 
I have managed to find some discussion about 404 errors in browser window with OneDrive where MS employee acknowledged there's a bug but I'm not sure if that's the same issue.
 
Does anyone also experience this behaviour in Power Automate?
Snímek obrazovky 2024-10-15 144740.png
Categories:
I have the same question (2)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi
     
    No way we can tell you without seeing the flow. this seems more like venting than a help request.
     
    Yes onedrive and many others have been impacted lately
     
    As for you, you need to share the flow. then more, share a Flow Run, showing the inputs and outputs of all the actions, especially the one that failed.
    That will tell you the issue, or we can help you but need to see it first.
  • JanDras Profile Picture
    85 on at
    Hello @FLMike,
     
    My flow is triggered when a new answer to a form is submited. What doesn't work is getting the attachment from the form.
     
    I initialize a variable "varFile" and then I Use For All with JSON to convert the values to string and get back the ID of the file. Then I proceed to use the OneDrive Get File Content and Get File Metadata using this ID I've gotten. As I said. It worked, now it returns 404.
     
    The "For All" uses the JSON expression ,
    json(body('Získat_podrobnosti_o_odpovědi')?['rd4b61cde3cdf472f96b20c13c4ed18d9'])
     
    And the "Set varible" that's inside the For All sets the varibale "varFile"
    items('Použít_na_všechny')?['id']
    so it gets the ID of the attached file.
     
     
    The output is a correct file ID - output  of the varFile:
    01SQYYGJE3WEFORY2V5NE3GCS23ACR5Q6K
    Input for the Get File Content:
    01SQYYGJE3WEFORY2V5NE3GCS23ACR5Q6K
    Output of the Get file content:
    body:
    {
      "status": 404,
      "message": "The resource could not be found.",
      "source": "api.connectorp.svc.ms"
    }
     
     
    Looking forward for your assistance.
     
     
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard