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 / Duplicate emails (one ...
Power Automate
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

Categories:
I have the same question (0)
  • v-yujincui-msft Profile Picture
    on at

    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

  • abreen Profile Picture
    15 on at

    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

    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

    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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard