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 Apps / Barcode Reader in Canv...
Power Apps
Unanswered

Barcode Reader in Canvas App Is not working

(0) ShareShare
ReportReport
Posted on by
I am using the barcode reader in my canvas app. 2-3 days ago the First(BarcodeReader1.Barcodes).Value was working as intended. But now since yesterday, It started giving me errors such as the .Barcodes is a record and not a table and the .Value is undefined. I tried just displaying the barcode in a gallery but that is empty and giving JSON parse error as well saying, expected object but got array. I looked at the documentation and I am using the same format to access to the value. in my onScan property it uses the First(BarcodeReader1.Barcodes).Value and stores it in a variable.

What do I have to do to access the value ? Did the barcode reader control change ? 
 
 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
    Hi,
     
    Please share pictures of everything, just a paragraph of info isn't enough.
     
    Cheers
     
  • Suggested answer
    PH-17021131-0 Profile Picture
    8 on at
    It seems to be a problem of powerapps version 25022, in 25014 it worked fine. I guess we have to wait for a fixing build later than .4 (latest atm).

    @FLMike: I think a paragraph of info says the same as a picture but since I have the same problem i can provide some:





    This worked well in powerapps release 3.25014.13 (last publish) but today I wanted to add some stuff and under powerapps 3.25022.4 it is not working anymore.

    Greetings
  • StretchFredrik Profile Picture
    3,395 Super User 2025 Season 2 on at
    Could you please show us what the output of the First(BarcodeReader.Barcodes).Value gives? The error you are getting believes u are setting the contextvariable's value to different types, (Such as an array at one place in your app and a object the next time). 

    Easiest is probably if you just add a label to show the outputs. 
     
    Is there any other place in the screen where you use this contextvariable?
  • PH-17021131-0 Profile Picture
    8 on at
    It is hard to show. I use the variable in 2 places, the search box and directly in the onScan (if barcode not found create a new entry -> lookup and patch).



    As I said, in the previous version of powerapps it worked like a charm. in the latest version it is broke even without any change to this part.
     
    LG/BR
  • PH-17021131-0 Profile Picture
    8 on at
    I missed one screenshot in my last post:

     
    testing it on pc does not work, because the scan button does not return the default test value like it did in the past and I have no camera on this workstation. the live monitor does not capture anything when hitting the button.

    on my mobile phone nothing happens. the scanner opens, detects barcode, onScan just closes the scanner and nothing else happens. when I role back to 25014 version of powerapps the barcode is filled into the text search box and the filter is triggered.
     
    BR
  • Verified answer
    PH-17021131-0 Profile Picture
    8 on at
    WORKAROUND:

    I found out that power apps maker studio can step back versions. you can set it under: settings > support > authoring version. (see screenshot below)

    I stepped back to latest build of 25014 and can now publish new content and features without breaking the scanner.

    Is there a way to report this "bug" back to microsoft?

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard