web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate AI Buil...
Power Automate
Answered

Power Automate AI Builder Error

(0) ShareShare
ReportReport
Posted on by 5

Hi Everyone, I have created a model using Form Processing Using AI Builder, when tried to run this model it is giving attached error. can someone help me on this please. 

Error message is:

{"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"}}]}}

 

problem.png.png

Categories:
I have the same question (0)
  • Verified answer
    JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @busekara,

     

    Thanks for posting about this. It looks like you are building a interesting automation around AI Builder and Teams, let's get you unblocked. 🙂

     

     

    Also, as a recommendation we now have dedicated AI Builder connector, so no need to use the Predict action on the Dataverse connector.

    2021-01-30_13-23-46.png

     

    Let us know if this solves the problem! 

  • busekara Profile Picture
    5 on at

    Hi, 

    Thank you very much for your answer. My problem was solved by using the connector you suggested.

  • andyinv Profile Picture
    15 on at

    Morning all

     

    Found this page as I'm having the same issue. I'm working through the same MS Learn module as the OP and have run into the same issue. However, I've followed your guidance here @JoeF-MSFT and am still getting the base64 error. I've switched over the new AI connector as you advised, and also added the inline processing condition for signatures re your link, but no joy? I've also tried outwith the Test funcionality, but same thing. Not allowed to upload image apparently, so link here: imgur.com/a/1uZRPs3 

     

    My test sender is gmail and it appears to be sending as a multi-part HTML. As we can see, base64 encoded..


    Any ideas? Thanks

    Also tried as this, but same outcome: https://powerusers.microsoft.com/t5/General-Power-Automate/InvalidPredictionInput-amp-quot-amp-quot-message-amp-quot-amp/m-p/719861/highlight/true#M59338

     

     

    Content-Type: application/pdf; name="Contoso_INVOICE_(WingTip).pdf"
    Content-Disposition: attachment; filename="Contoso_INVOICE_(WingTip).pdf"
    Content-Transfer-Encoding: base64
    X-Attachment-Id: f_kmqjy56v0
    {
    "error": {
    "code": "0x80040265",
    "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\"}}]}}"
    }
    }

     

    Tried various things, this is latest iteration:

    {
     "inputs": {
     "host": {
     "connectionName": "shared_commondataserviceforapps",
     "operationId": "aibuilderpredict_formsprocessing",
     "apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
     },
     "parameters": {
     "recordId": "a606dcf0-3f48-4aa9-a782-f869921ccbab",
     "item/requestv2/mimeType": "@items('Apply_to_each')?['contentType']",
     "item/requestv2/base64Encoded": "@items('Apply_to_each')?['contentBytes']"
     },
     "authentication": "@parameters('$authentication')"
     },
     "metadata": {
     "flowSystemMetadata": {
     "portalOperationId": "aibuilderpredict_formsprocessing",
     "portalOperationGroup": "aibuilder",
     "portalOperationApiDisplayNameOverride": "AI Builder",
     "portalOperationIconOverride": "https://psuxemea.azureedge.net/Content/Images/DesignerOperations/aiBuilder.png",
     "portalOperationBrandColorOverride": "#742775",
     "portalOperationApiTierOverride": "Standard"
     }
     }
    }

    Screenshot here  

  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Thanks for reaching out @andyinv Let's get you unblocked. 🙂

    Did you set these fields to Yes in the Outlook trigger as in the screenshot here?

    Also, how are you testing? By sending an email or by using the Test using previous run feature?  You should test by sending an email.

  • andyinv Profile Picture
    15 on at

    Argh... somehow, in all my various tests between trying things, I hadn't turned on the Include Attachments and Only Attachments. I can't believe it was something so simple and I missed it... especially when I was following the green arrows below it.

     

    Nightmare! But thanks loads for the quick reply, really appreciate it.

     

    On that topic tho, are there any plans to update the MS Learn modules to take current tech into account? It was following that initially that I think kinda led me into this mess of google searches, trying everything and anything...

     

    As you're probably aware, the docs use the legacy Predict module:

    https://docs.microsoft.com/en-us/learn/modules/implement-power-automate-ui-flows-ai-builder/4-use-power-automate-automate-routing-approval-process

     

    Thanks!

  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Good to hear you got it working @andyinv!

    Yes, indeed we need to update that module. 😉


  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hi @JoeF-MSFT ,

    I also have problems with running the AI Builder at the moment.

     

    My scenario is "extract information from forms"....

    - I verified that the attachments don't contain a signature or are locked

    - I tried to send the test mail "externally" to the test area, he recognizes the attachments but he fails the recognisation.

    I'm sending you a screenshot of the flow. The only different compared to a "classic" one, is that I apply a condition filter, The AI process has to run only for a file which complies with a certain rule (e.g.: the filename contains a keyword)

     

    camne_snc_0-1655506940694.png

     

    camne_snc_1-1655507002640.png

     

    Thank you for your help!

     

  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @Anonymous - thanks for asking.

     

    Instead of 'current Item' for the Form input in the Extract information from forms action, try selecting Attachments Content

     

    JoeFMSFT_0-1655586337345.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hi @JoeF-MSFT ,

    thanks, it solved. Actually i did an attempt with it, but probably didn't reset the script in time for it to process. I tried after 24 hours, it seems to work, now I have only to understand how to extract the actual values in an array :D.

  • Anirudh_Pachore Profile Picture
    3 on at

    h@JoeF-MSFT ,

    m facing the same error but it was working fine before some time , 

     

    {"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}Screenshot (24).png

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard