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.
'
Regards,
Lia
Solved! Go to Solution.
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
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
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