Skip to main content
Community site session details

Community site session details

Session Id : +PTUOcbBp8bln6l7eXo4/u
Power Automate - AI Builder
Answered

Invoice processing - BadRequest Error - Custom Flow

Like (1) ShareShare
ReportReport
Posted on 6 Sep 2023 11:01:33 by 9

Hi AI Builder Community,

 

I am having the below error message when testing my custom made flow for invoice processing to fetch data from the pdf to excel. Is this an issue with the AI builder or the flow?

Please help with some guidance to fix. 

BTW I posted also into the group Building Flow and they re-directed me here. Here is my older post to the topic. I tried the suggested but it is still not working. 

https://powerusers.microsoft.com/t5/Building-Flows/Extract-text-from-pdf-into-excel-and-send-email-with-the-pdf/m-p/2331987/emcs_t/S2h8ZW1haWx8bWVudGlvbl9zdWJzY3JpcHRpb258TE01NkJEMTVUQzRXNlZ8MjMzMTk4N3xBVF9NRU5USU9OU3xoSw#M259319

 

  "error": {
    "code""0x80048d0b",
    "message""{\"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\"}}]},\"predictionId\":null}"
  }
 
Plamena_0-1693998035967.png

 

Thanks

Plamena 

  • Verified answer
    NathanAlvares24 Profile Picture
    1,673 Moderator on 14 Feb 2024 at 11:46:01
    Re: Invoice processing - BadRequest Error - Custom Flow

    Hi @Plamena !

    NathanAlvares24_0-1707911115926.png

    When you use the "Extract from Documents" AI model action, instead of providing form type as a specific file type (like how you used "PDF Document"), use the following custom entry: "Attachments Content-Type" from the "Receive attachment (V2)" action.

     

    Another picture below to re-check if this is existing in your flow:

    NathanAlvares24_1-1707911116128.png

  • CU22041525-0 Profile Picture
    89 on 27 Oct 2023 at 06:07:59
    Re: Invoice processing - BadRequest Error - Custom Flow

    Hi @Plamena !

    NathanAlvares23_0-1698385980870.png

    When you use the "Extract from Documents" AI model action, instead of providing form type as a specific file type (like how you used "PDF Document"), use the following custom entry: "Attachments Content-Type" from the "Receive attachment (V2)" action.

     

    Another picture below to re-check if this is existing in your flow:

    NathanAlvares23_2-1698386827546.png

    If this helps & solves your problem, please remember to give a NathanAlvares23_1-1698386576144.png and accept my solution as it will help others in the future.

     

    Thanks,

    Nathan Alvares

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete