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 Apps / AI Model formprocessor...
Power Apps
Suggested Answer

AI Model formprocessor is not returning any values in the Result set

(2) ShareShare
ReportReport
Posted on by 5
This formula is OnChange action of the form processor and it was working fine but then it stopped returning any values in the Result Set.
 
ClearCollect(
    ExtractedData1,
    {
        Title: "Capacity",
        Value: Text(AIForm.Results.Capacity.Value), // Ensure correct data access
        Page: Value(AIForm.Results.Capacity.PageNumber),
        Confidence: Text(AIForm.Results.Capacity.Confidence * 100, "0.0") & "%"
    },
    {
        Title: "Speed",
        Value: Text(AIForm.Results.Speed.Value),
        Page: Value(AIForm.Results.Speed.PageNumber),
        Confidence: Text(AIForm.Results.Speed.Confidence * 100, "0.0") & "%"
    },
    {
        Title: "Type",
        Value: Text(AIForm.Results.Type.Value),
        Page: Value(AIForm.Results.Type.PageNumber),
        Confidence: Text(AIForm.Results.Type.Confidence * 100, "0.0") & "%"
    },
    {
        Title: "Quantity",
        Value: Text(AIForm.Results.Quantity.Value),
        Page: Value(AIForm.Results.Quantity.PageNumber),
        Confidence: Text(AIForm.Results.Quantity.Confidence * 100, "0.0") & "%"
    }
);
Screenshot 2025-02-21 171803.png
Categories:
I have the same question (0)
  • Suggested answer
    Ravi-Prajapati Profile Picture
    416 Moderator on at

    If your formula was working fine before but suddenly stopped returning values, here are some troubleshooting steps to diagnose and fix the issue:

    1. Check if AIForm Has Data

    If AIForm.Results is empty or does not contain expected values, your ClearCollect will not populate ExtractedData1. Test this by adding a label and setting its text to:

    Text(AIForm.Results)

    If nothing appears, the issue might be with your AI model or the form processor failing to extract data.

    2. Ensure Fields Exist in AIForm.Results

    If the structure of AIForm.Results changed, verify that Capacity, Speed, Type, and Quantity still exist. Try using:

    AIForm.Results.Capacity

    If it returns blank or an error, the field might be missing or renamed.

    3. Use the Monitor Tool

    Go to Advanced Tools → Monitor and observe what AIForm.Results contains when you submit a form. This can reveal if the AI model is returning empty results.

    4. Handle Missing Data with Defaults

    If some fields might be missing, update your formula to handle Blank() values:

    ClearCollect(
    ExtractedData1,
    {
    Title: "Capacity",
    Value: If(!IsBlank(AIForm.Results.Capacity), Text(AIForm.Results.Capacity.Value), "N/A"),
    Page: If(!IsBlank(AIForm.Results.Capacity), Value(AIForm.Results.Capacity.PageNumber), 0),
    Confidence: If(!IsBlank(AIForm.Results.Capacity), Text(AIForm.Results.Capacity.Confidence * 100, "0.0") & "%", "0%")
    },
    {
    Title: "Speed",
    Value: If(!IsBlank(AIForm.Results.Speed), Text(AIForm.Results.Speed.Value), "N/A"),
    Page: If(!IsBlank(AIForm.Results.Speed), Value(AIForm.Results.Speed.PageNumber), 0),
    Confidence: If(!IsBlank(AIForm.Results.Speed), Text(AIForm.Results.Speed.Confidence * 100, "0.0") & "%", "0%")
    },
    {
    Title: "Type",
    Value: If(!IsBlank(AIForm.Results.Type), Text(AIForm.Results.Type.Value), "N/A"),
    Page: If(!IsBlank(AIForm.Results.Type), Value(AIForm.Results.Type.PageNumber), 0),
    Confidence: If(!IsBlank(AIForm.Results.Type), Text(AIForm.Results.Type.Confidence * 100, "0.0") & "%", "0%")
    },
    {
    Title: "Quantity",
    Value: If(!IsBlank(AIForm.Results.Quantity), Text(AIForm.Results.Quantity.Value), "N/A"),
    Page: If(!IsBlank(AIForm.Results.Quantity), Value(AIForm.Results.Quantity.PageNumber), 0),
    Confidence: If(!IsBlank(AIForm.Results.Quantity), Text(AIForm.Results.Quantity.Confidence * 100, "0.0") & "%", "0%")
    }
    );

    This prevents errors if some fields are missing.

    5. Check Form Processor Component

    If the AI Model was retrained or updated, the output structure might have changed. Try:

    • Re-checking the field mappings in the Form Processor component.
    • Testing the Form Processor with a sample document in the AI Builder model.
  • SK-21022312-0 Profile Picture
    5 on at
    I have tried all the mentioned solutions. I am getting these four fields in my analyser but not in the Result Set. The same formula was working one day before and it is strange that it started giving errors now. Even when I select Fields nothing is being returned.  

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 600

#2
WarrenBelz Profile Picture

WarrenBelz 478 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard