HI,
My use case is to run an AI model in Power automate flow. However the user needs to add the PDF sample file (on which AI model needs to work) in power apps.
Power Apps:
Expression to run Button: 'PowerAppV2->Compose'.Run('Sample Text'.Text,First(Sample.Attachments))
Power Automate V2 trigger where Sample File Will be uploaded from Power Apps. This Sample file will be fed in an AI extractor for extracting data.
However I am getting following error. Pls help how to solve this issue.
{"operationStatus":"Error","error":{"type":"Error","code":"InvalidPredictionInput","message":"The base 64 binary content is missing for input single","properties":{"BackendErrorCode":"InvalidInferenceInput","DependencyHttpStatusCode":"400"},"innerErrors":[{"scope":"Record","target":"single","code":"InvalidRecord","type":"Error","properties":{"MlIssueCode":"InvalidRecord","MlIssueTarget":"single"}}]}}
Hi @svivek ,
Would you like to upload PDF files in PowerApps and then using AI Builder in a Flow to extract information? If so, please flow the steps of the solution in below thread:
In short words, within your Canvas App, using a JSON function to include the file data and pass to the flow, then get the file content use json and dataUriToBinary functions in the flow. Note that it's using PowerApps than PowerAppsV2 trigger in the flow.
Best regards,