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 / Form Recognizer / JSON...
Power Apps
Unanswered

Form Recognizer / JSON Error

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator

I am practicing with Form Recognizer and Business Card Reader.

I've got all the pieces on a PA screen and I've created a flow.

I can upload a card to the Business Card Reader and see the card in the view.

I have a Checkbox control that collects the JSON from the card; it has the below in the OnSelect property:

Collect(CardImageCollection,
{
picture: BusinessCardReader1.CleanedImage,
Name: Rand() & ".jpg"
}
);
Set(
varJSON,
JSON(
CardImageCollection,
JSONFormat.IncludeBinaryData
)
);

I have a TextInput field that has the varJSON in the 'Default' property.

Every time I try to collect the data from the card the system locks up and I get the PA screen 'Wait or Reload' information message.

Any thoughts on why this won't complete? I got it to work the very first time but not since.

Categories:
  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @Phineas - thanks for the question!

     

    I suspect this might be caused due to showing varJSON in a TextInput. If you remove the TextInput - do you still get the 'Wait or Reload' message?

     

    The Base64 text encoding of an image can be quite large in length, especially for big images, making the app freeze. I imagine you want to send the base64 text to the flow and not necessarily show it in the app?

  • Phineas Profile Picture
    5,331 Moderator on at

    Taking a different tact, I'm trying it with the camera, an image control, a button, and flow.

    I've gotten the image. I have the JSON (in a TextInput), and I have the following in the Button:

     

     Set(varEventRecognizerResults, EventRegistrationRecognizerFlow.Run({file:{name:GUID() & ".jpg",contentBytes:Camera1.Photo}}))

    Phineas_0-1649714685838.png

     

    The flow gave me the following error:

    Phineas_1-1649714742953.png

     

    Inputs (this is just a 1/3 of it):

    Phineas_3-1649714876157.png

     


    Outputs:

    Phineas_2-1649714804145.png

     

  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Thanks for sharing @Phineas!

     

    This page explains how to achieve a similar scenario with the Invoice Processing model: Use invoice processing in Power Apps - AI Builder | Microsoft Docs Just replace the AI Builder Invoice Processing action in the flow by AI Builder Business Card.

     

    I hope this helps!

  • Phineas Profile Picture
    5,331 Moderator on at

    The instruction require me to choose "Process and save information from invoices" in the Actions list. I don't have it as an option in my Actions list.

    Phineas_0-1649717044897.png

     

  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Good catch @Phineas - we need to update that in the documentation.

     

    If you want to use the invoice model, the action is now called --> Extract information from invoices

     

    If you want to use the business card reader model, the action is now called --> Read business card information

     

    JoeFMSFT_0-1649749300519.png

     

  • Phineas Profile Picture
    5,331 Moderator on at

    Also, Form Recognizer is free (with license); AI build is $500 a month.

    That makes a difference. 

    It is unclear to me why Form Recognizer doesn't perform as easily and efficiently as AI builder.

  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @Phineas!

     

    Azure Form Recognizer is targeted to professional developers. AI Builder is built on top of Azure Form Recognizer and offers a no-code experience for citizen developers. Same great technology, but in the case of AI Builder no need to manage Azure resources or write code. 🙂

     

    To use AI Builder, you can start with a free trial. Once you're ready for production usage you will need AI Builder credits. One way to purchase AI Builder credits is indeed through the $500 add-on. The Power Apps per user or per app plans as well as the Power Automate RPA plans now include a number of AI Builder credits in them as well.

     

    If you are considering processing a large amount of data with AI Builder, consider reaching out to our friendly Microsoft Sales team as there are a number of discount options available. 

     

  • Phineas Profile Picture
    5,331 Moderator on at

    Can you clarify; can credits only be purchased through/with the add-on, and/or only come with the 'per user', 'per app', or RPA plans?

    Do you know how many credits the plans come with and how the credits are used to pay the 'toll' for AI usability?

    Is it one credit per flow run, per action, per, per, per...?

    Thank you!

  • JoeF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @Phineas,

     

    There are a number of options:

    • 1 AI Builder add-on will give you 1,000,000 AI Builder credits per month.
    • 1 Power Apps per app plan gives you 250 AI Builder credits per month.
    • 1 Power Apps per user plan gives you 500 AI Builder credits per month.
    • 1 Power Automate RPA license gives you 5,000 AI Builder credits per month. 

     

    Depending on which AI Builder model you use, it consumes more or less AI Builder credits. The Power Platform licensing guide describes how many AI Builder credits are consumed per type of model: https://go.microsoft.com/fwlink/?linkid=2085130 (look for the 'AI Builder capacity add-on' section).

     

    Hope this helps bring more clarity!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard