Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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.

  • Verified answer
    David_MA Profile Picture
    11,500 Super User 2025 Season 1 on at
    Re: Something went wrong. We can't open this file.

    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492