cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Akshay_M92
Frequent Visitor

Unable to process PDF file using AI Builder Form Processing in Power Automate D365

Hi,

I'm trying to set the properties in predict for AI Builder "Read PDF"(Form Processing) in Power Automate to read Attachment from the note(annotation) and it is not working.

But if I trigger the AI Builder manually using Power Automate it works successfully.

Since there is a error with Document parameter, i entered below expression:
triggerOutputs()?['body/documentbody']

Screen clip of Power Automate:
Capture3.PNG

Screen Clip of Error:

Capture.PNGCapture2.PNG
Error Details:

Content parsing error.File content could not be parsed, could be that the mime type does not match the actual binary content

Any help would be appreciated.

Thanks,
Akshay

2 ACCEPTED SOLUTIONS

Accepted Solutions
JoeF-MSFT
Power Apps
Power Apps

Hi @Akshay_M92,

 

Thanks for posting the question.

 

I believe the issue is that with triggerOutputs()?['body/documentbody'] you are retrieving a base 64 string. You will need it to convert to binary which is the type that is expected in the Document field. You can use the following expression to do it: base64ToBinary(triggerOutputs()?['body/documentbody'])

 

Let us know if this helps!

 

 

View solution in original post

Hi @JoeF-MSFT,

 

Thank you for your quick reply and It worked 🙂

 

Thanks!

Akshay

View solution in original post

2 REPLIES 2
JoeF-MSFT
Power Apps
Power Apps

Hi @Akshay_M92,

 

Thanks for posting the question.

 

I believe the issue is that with triggerOutputs()?['body/documentbody'] you are retrieving a base 64 string. You will need it to convert to binary which is the type that is expected in the Document field. You can use the following expression to do it: base64ToBinary(triggerOutputs()?['body/documentbody'])

 

Let us know if this helps!

 

 

Hi @JoeF-MSFT,

 

Thank you for your quick reply and It worked 🙂

 

Thanks!

Akshay

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,790)