Hi All
- Objective:
- I have built a flow to take a PDF and extract the Invoice Name and then rename the PDF and put it in another folder. All the PDFS are similar in how there are presented and so I built a AI Model to pull the data off each PDF. I tested this and the AI model seems to be working,
- MY flow is Trigger - when a fil is created (properties only) - Condition (to use a certain file path) - Get file content - Process Documents -Parse Json-then a loop for each to rename and move to a certain file
As I went along I tested each sage I have looked at the out puts I can see the AI returning the InvoiceNumber and the CompanyName as requested. I was getting run time errors but now I am getting a error saying that the Json is bring back NULL which suguests that the AI model isnt working.
Current Error Message: Action 'Process_documents' failed: {"operationStatus":"Error","error":{"type":"Error","code":"InvalidPredictionInput","message":"Encountered an issue when reaching Form Recognizer: InvalidRequest","properties":{"BackendErrorCode":"InvalidInferenceInput","DependencyHttpStatusCode":"400"},"innerErrors":[{"scope":"Record","target":null,"code":"InvalidRecord","type":"Error","properties":{"ErrorCode":"InvalidRequest","MlIssueCode":"InvalidRecord"}}]},"predictionId":null}
Below is the Current Json and then below that is my create file details.
I have used copilot that keep saying all was OK but the Json is bring back Null which mean look at AI model is it working and it is working, I have tested it I can see it in the code. I need help please