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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / AI Builder - Extract I...
Power Automate
Suggested Answer

AI Builder - Extract Information from Documents" Not Working

(2) ShareShare
ReportReport
Posted on by 4
Hi, I'm relatively new to the power platform and this is my first attempt at building an AI model for automation. When I created the first cloud flow and tested it I got the following error;
 
{"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}

What I am attempting to do is to extract information from a PDF file which contains certain data and populate that information in to an excel table.
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Jon Unzueta Profile Picture
    1,834 Super User 2025 Season 2 on at
     

    Thanks for sharing the error and your goal — you're on a great learning path with Power Platform and AI Builder! Let's break down the issue and guide you toward a working solution.


    ❌ Error Explanation

    The error message:

    "InvalidPredictionInput": "The base 64 binary content is missing for input single"

    means that the AI model (likely a form processing model) expected a PDF file in base64 format, but it didn’t receive it correctly.


    ✅ What You’re Trying to Do

    You want to:

    1. Receive a PDF file.
    2. Extract structured data from it (e.g., invoice, order, etc.).
    3. Populate an Excel table with that data.

    🛠️ How to Fix It

    ✅ 1. Ensure the PDF is passed correctly to the AI model

    If you're using a form processing model, it expects the PDF file as a base64-encoded binary. In Power Automate:

    • Use the "Get file content" action (e.g., from SharePoint, OneDrive, or email).
    • Pass the output to the AI Builder "Predict" action.

    Example flow:

    Trigger → Get file content → AI Builder Predict → Parse results → Add row to Excel

    Make sure the "File Content" field in the Predict action is filled with the output from "Get file content".


    ✅ 2. Use the correct AI model type

    • If your PDF has a consistent layout (e.g., invoices, forms), use Form Processing.
    • If you're extracting text from unstructured documents, use Document Processing or Custom AI model.

    ✅ 3. Excel Table Setup

    • Create an Excel file with a table (Insert → Table).
    • Use "Add a row into a table" action in Power Automate.
    • Map the extracted fields from the AI model to the Excel columns.

    🧪 Test It Step-by-Step

    1. Upload a sample PDF to SharePoint or OneDrive.
    2. Create a flow:
      • Trigger: Manual or file upload.
      • Get file content.
      • Predict with AI Builder.
      • Add row to Excel.
    3. Run the flow and check each step’s output.
    🏷️ Tag me if you have any further questions or if the issue persists. ✅ Click "Accept as Solution" if my post helped resolve your issue—it helps others facing similar problems. ❤️ Give it a Like if you found the approach useful in any way.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 392 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 270 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 205 Most Valuable Professional

Last 30 days Overall leaderboard