Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Duplicate emails (one with a corrupt attachment) being sent on a single attachment send email action.

(0) ShareShare
ReportReport
Posted on by 15

I have a really simple flow created that is triggered when an incoming Power Bi subscription email arrives, that the attachment/preview image is picked up from that email. Then a send new email action is added where the attachment from the incoming email is added and sent designated recipient. After that the original email is deleted to complete the flow.

The issue I am experiencing is at the send email stage. I have the send email setup to use the attachment from the incoming email which is working. But I am getting duplicate emails sent when adding a single attachment to the email.

Send_Email_Flow.png

 

One file comes with the attachment named correctly and the second email delivers a corrupt attachment. Any ideas why adding one single file would result in two separate emails being sent or result in a corrupt attachment? I have narrowed down the duplicate emails to the attachment, when the flow runs without an attachment only one email is sent.


duplicate_emails.jpg

  • abreen Profile Picture
    15 on at
    Re: Duplicate emails (one with a corrupt attachment) being sent on a single attachment send email action.

    There is no problem with the attachment file from the subscription email. Before changes were made to the flow, I was receiving one email that contained an uncorrupt attachment and a second email with a corrupt attachment. 

    Once changes were made to the flow, I am only receiving one email. But that single email now contains a corrupt attachment.

    Email from Power BI subscription, with non-corrupt attachment.
    original email.png

     

    Email sent from flow using the attachment from the Power BI subscription where the attachment is corrupt and showing 2 attachment files. When only one attachment is being picked up.

    flow sent email.png

  • v-yujincui-msft Profile Picture
    on at
    Re: Duplicate emails (one with a corrupt attachment) being sent on a single attachment send email action.

    Hi @abreen ,

     

    Can the original files of the attachments be opened normally?

    Maybe you could try to check the subscription email you received.

     

     

    Best Regards,
    Charlie Choi

  • abreen Profile Picture
    15 on at
    Re: Duplicate emails (one with a corrupt attachment) being sent on a single attachment send email action.

    Thank you! That stopped the duplicate emails. Now I am just receiving one email, but the attachment is corrupt in the single email.corrupt_attachment.png


    Updated flow:
    updated_flow.png

  • v-yujincui-msft Profile Picture
    on at
    Re: Duplicate emails (one with a corrupt attachment) being sent on a single attachment send email action.

    Hi @abreen ,

     

    The Attachments field returned by the Trigger is an array, so flow will automatically add an Apply to each Action.

     

    Maybe you could try as below:

    {
    "Name":@{outputs('Get_Attachment_(V2)')?['body/name']},
    "ContentBytes":@{outputs('Get_Attachment_(V2)')?['body/contentBytes']}
    }

    vyujincuimsft_0-1654243765811.pngvyujincuimsft_1-1654243801608.png

    vyujincuimsft_2-1654243866508.png

    Result Screenshot:

     

    vyujincuimsft_3-1654243919271.png

     

     

    Best Regards,
    Charlie Choi

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow