cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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

Highlighted

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Users online (8,967)