-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] S3 PUT does not work for Office Files (Excel, Word, PowerPoint) #3702
Comments
To be clear - no error is received. The error appears when trying to use the file that was put into the s3 bucket. |
@skjones91199 can you please add a sreenshot of your PUT action. Please include also possible transformations of your file content before you use the action. I have recognized, sometime it make sence to use a compose action in which is initialized with the file content and passes the content as output to the PUT action. Please try this:
Especially for a file stored in sharepoint, you must decode the content:
I use this formula for my test flow:
Hope this helps |
Thanks for the reply, Michael! I do appreciate it. I setup a test flow to implement the suggestions you made, and had the same results. I've included the screenshot of the compose and put actions, as well as the input & output from the put action when testing the flow. I have also tried getting the file contents from an s3 bucket with the same result. I appreciate any suggestions! |
We're also have the same issue and the above steps didn't help #3702 (comment). I noticed the screenshot for 'Put Object' has a different green icon compared with us having the red icon. Is it the same connector? |
I am also seeing the same problem. I inspected the XLSX after the transfer, the file size is bigger and it appears that a bunch of higher-value ASCII bytes seem to be inserted in odd locations. I'll try to do some canned tests tomorrow and see if I can add some artifacts to this issue. |
Ahh, I see. @ckane I can confirm that the stream is not correctly encoded at AWS S3. I need to investigate into this issue. |
Ok, attaching the files Original: Another Test 2024-11-22.xlsx Uploaded (corrupted): Another_Test_2024-11-22.xlsx Using Looking at the original file, it appears these are inserted where the byte value is |
@ckane - thank you for the information! After you get the file you have the 'base64(body('Get_file_content')) in the Content field of the Put object? That didn't work for me, but I think I'm interpreting your steps incorrectly. Would you perhaps give a bit more detail on how you got this working? |
Type of Connector
Independent Publisher Connector
Name of Connector
Amazon S3 Bucket
Describe the bug
Trying to use the connector to put office files into an Amazon S3 bucket.
The PUT appears to work, but the file in the amazon s3 bucket is corrupted. The error is below:
File types tried:
.docx
.pptx
.xlsx
.png
.txt, .csv, and .pdf file work.
I retrieved the file contents via a SharePoint site, OneDrive, and another S3 bucket.
Is this a security bug?
No, this is not a security bug
What is the severity of this bug?
Severity 2 - One or more important connector features are down
To Reproduce
Expected behavior
The file is uploaded to the S3 bucket used in step #4. The file opens in its corresponding app without error. I've attached more informations3 put object information.txt
Environment summary
Power Automate
Amazon S3
OS - windows 10
Additional context
I've attached a file with the raw inputs and outputs for the s3 get and put actions.
The text was updated successfully, but these errors were encountered: