Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Get S3 Object Content Fails with NotFound When File has no Extension

(0) ShareShare
ReportReport
Posted on by 13

We are testing out a downloading files from S3 buckets using Power Automate cloud flows.

 

Using the "Get S3 object content" action, our manually triggered flow works as expected if the key of the object (the path and filename) has a file extension, like .txt: DEV/folder/file_name_000.txt

 

If the file that we are trying to download does not have an extension: DEV/folder/file_name_000

 

we get a NotFound error with body:

{
  "status"404,
  "message""The object key was not found in the S3 bucket. AWS Request Id: <snip> AWS Id2: <snip>.\r\nclientRequestId: <snip>",
  "error": {
    "message""The object key was not found in the S3 bucket. AWS Request Id: <snip> AWS Id2: <snip>."
  },
  "source""amazons3-wus.azconn-wus.p.azurewebsites.net"
}
 
Both files are in the same folder that has the same permissions, and the files are accessible using other tools like S3 Browser.
 
Is there a setting or parameter in the action that we need to pass along as part of the request?

Thanks
  • Verified answer
    Sohrab Profile Picture
    Sohrab 13 on at
    Re: Get S3 Object Content Fails with NotFound When File has no Extension

    This error seems to be related to S3 permissions or something else, as we have now generated some passing test cases where the object has no file extension.  Thanks for your help.

  • Sohrab Profile Picture
    Sohrab 13 on at
    Re: Get S3 Object Content Fails with NotFound When File has no Extension

    @anupam8555 you're right that we aren't passing an extension in the failing case.  Note though, that the file that we need to pull *has no extension* on the S3 side, the file is named "file_name_000"

  • Anupam.khasia Profile Picture
    Anupam.khasia 343 on at
    Re: Get S3 Object Content Fails with NotFound When File has no Extension

    @Sohrab  - looks you are passing file name without extension , you must pass full name with extension . system will not pick anonymously with only file name.  

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard

Featured topics