cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sohrab
Regular Visitor

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

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
1 ACCEPTED SOLUTION

Accepted Solutions
Sohrab
Regular Visitor

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.

View solution in original post

3 REPLIES 3
anupam8555
Responsive Resident
Responsive Resident

@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.  

@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"

Sohrab
Regular Visitor

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.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Kudoed Authors
Users online (2,717)