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 / Something went wrong. ...
Power Automate
Answered

Something went wrong. We can't open this file.

(0) ShareShare
ReportReport
Posted on by 212

I created a powerautomate workflow that when an invoice is approved, we create a new invoice entry in the AP invoice lists and append attachment. In the Invoices screen, I can see and download the attachment. However, in the AP Invoice window (list) it is saying Something went wrong. We can't open this file. In the downloads, the size of the file is 1 kb. It's recognizes the name of the PDF but won't open.

mthiru_0023_0-1680273669006.png

 

Here is my Flow. I have when an item is created or modified in the Invoices list. Get Item (ID). Initialize a variable - Name: VarAttachments and Array type. Get attachments from the Invoice ID. And then Get attachment content from the Invoice ID and File identifier ID. 

mthiru_0023_1-1680273804866.png

 

I do switch based on Department for the AP Team.

mthiru_0023_2-1680273849170.png

 

 

mthiru_0023_3-1680273885616.png

Anyone know what could be wrong with this. I hope this is enough information.

Categories:
I have the same question (0)
  • Verified answer
    David_MA Profile Picture
    14,918 Super User 2026 Season 1 on at

    Not exactly sure what you are doing here, but I can see the issue. In the Add attachment action you have the Id as the content. You need to get the content of the file you want to attach, and put the dynamic item Content in that action. For example:

    getfilecontent.jpg

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