cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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 @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

View solution in original post

2 REPLIES 2
JoeF-MSFT
Power Apps
Power Apps

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

Anonymous
Not applicable

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

Top Solution Authors
Top Kudoed Authors
Users online (3,679)