web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Downloaded PDF attachm...
Power Automate
Answered

Downloaded PDF attachment from mail crashes when Opened with Adobe Acrobat

(3) ShareShare
ReportReport
Posted on by 10
 
When a mail arrives, it needs to get the attachment and save it in SharePoint. For the file name, it needs to apply the subject name. I am using the below function for the file name:
 
concat(triggerOutputs()?['body/subject'], '.', split(item()?['contentType'],'/')[1])
 
This works perfectly fine and saves it as a PDF file. However, when I try to open the file in Adobe Acrobat (default program) it freezes and crashes. When I open it through my web browser, OR when I open it in Adobe Acrobat while it has another PDF file open already, it remains open and is editable. 
Categories:
I have the same question (0)
  • Verified answer
    trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at
    Hi,
     
    Here's a couple things to check; seems like this can be resolved pretty quickly.  The root cause is the file content for your create file action.  But first, to make sure you are actually getting the attachment file content, make sure these two switches are both set to Yes.
     
     
    Next the key here is getting the content bytes from the trigger.  Also, when resubmitting in the new designer (urrggghh!?!)  you cannot resubmit a run and get the attachment content; to test, you have to submit a new email so if you are retesting and retesting, it will continue to fail even if you fixed it.  Another new designer issue.
     
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     

     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard