Hi,
I am trying to create a flow that checks the body of incoming emails for keywords like "invoice" "receipt," "folio." If the emails do contain those keywords, then the email is saved as a PDF file in a One Drive folder. That part of the flow works. However, if the email body does not contain those keywords, then I want to search any attached PDFs for those keywords. If the attached PDF contains any of those keywords, then I want the PDF attachment to be saved in a OneDrive folder. I attempted to use the "Recognize text in an image or PDF document" function to get the raw text, which I would then apply a Condition function to, but I got the error below:
{"operationStatus":"Error","error":{"type":"Error","code":"InvalidPredictionInput","message":"InvalidImage. The file submitted couldn't be parsed. This can be due to one of the following reasons: the file format is not supported ( Supported formats include JPEG, PNG, BMP, PDF and TIFF), the file is corrupted or password protected.","properties":{"BackendErrorCode":"InvalidInferenceInput","DependencyHttpStatusCode":"400"},"innerErrors":[{"scope":"Record","target":"single","code":"InvalidRecord","type":"Error","properties":{"InnerErrorCode":"InvalidImage","MlIssueCode":"InvalidRecord","MlIssueTarget":"single"}}]},"predictionId":null}
Any suggestions? Thanks!