cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lia333
New Member

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
JoeF-MSFT
Power Apps
Power Apps

Hi @lia333,

 

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-fro...

View solution in original post

2 REPLIES 2
JoeF-MSFT
Power Apps
Power Apps

Hi @lia333,

 

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-fro...

View solution in original post

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

 

 

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Kudoed Authors
Users online (3,569)