Hello I am trying to create a series of flows that create a file in a sharepoint file in a library, then move/ rename file based on text within the file.
I am doing this with 2 flows. All files are essentially the same and are pdf format throughout the process
The first flow simply creates a file from a shared box. See below:
The second flow is below:
And i get the following error:
{"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"}}]}}
Additionally, I did check the link here for a solution but its solution was not successful for me.
https://powerusers.microsoft.com/t5/AI-Builder/PDF-file-created-in-SharePoint-library-from-attachmen...
My second flow works perfectly for pdf files that are dragged and dropped. its just the ones from my first flow that are giving me trouble.
Solved! Go to Solution.
Ok, i think i have solved it!
Essentially, I just turned this into one flow and that mitigated the issue. I'm sure there is a more concise method, but this is working and I am satisfied.
I opted for creating a file temporarily from the email attachment and processing through Sharepoint triggers to retrieve the attachment for the AI builder to process, find the necessary text, create a new file with the desired naming convention and then deleting the initially created SharePoint file.
See below for the finished solution.
The initial trigger was 'When a new email arrives in a shared mailbox (v2)'
Hi @colby2 - thanks for the question.
Let's try a couple of things:
Hope these steps helps us move closer finding an explanation to what is happening. 🙂
and online it shows this:
Ok, i think i have solved it!
Essentially, I just turned this into one flow and that mitigated the issue. I'm sure there is a more concise method, but this is working and I am satisfied.
I opted for creating a file temporarily from the email attachment and processing through Sharepoint triggers to retrieve the attachment for the AI builder to process, find the necessary text, create a new file with the desired naming convention and then deleting the initially created SharePoint file.
See below for the finished solution.
The initial trigger was 'When a new email arrives in a shared mailbox (v2)'