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 / One PDF in email to go...
Power Automate
Answered

One PDF in email to go thru AI form processing but somehow the Apply Each steps ran three times

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

 

I'm building an AI model on automating container sea freight approval.  The invoice usually comes as a single pdf attachment on a standard email. 

 

The flow in general is quite basic and I do get the data extracted properly.

 

Only issue here i always see the 'Apply to each' processes goes for three times - first time success, then the successive two are failed with the reason 'invalid input' - which is understandable.

 

Anyone has the idea if I did the flow incorrectly? or it's a known issue.

 
 

3 times.JPG'

 

Regards,

Lia

Categories:
I have the same question (0)
  • Verified answer
    JoeF-MSFT Profile Picture
    on at

    Hi @Anonymous,

     

    Thanks for posting the question. Could it be that the emails where the invoices are attached have an email signature? Like a logo or something similar at the end of the email? If this is the case, email signatures are picked up as attachments by the flow.

    To filter out signatures, you can do the following: https://docs.microsoft.com/en-us/ai-builder/form-processing-model-in-flow#filter-email-signature-from-a-flow-so-that-is-is-not-processed-by-the-form-processing-model-office-365-outlook

  • Community Power Platform Member Profile Picture
    on at

    Hi Joe,

     

    yes I think we are definitely on the right track - use the same flow def but a new testing emails WITHOUT any email signature - it worked nicely!

     

    but I'd like to build a more robust flow and followed the suggestion of using a control.

     

    Also worked really nicely. The 2nd and 3rd attemp will just be skipped. 

     

    Thanks very much.

     

    Regards,

    Lia

     

     

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard