Skip to main content

Notifications

Community site session details

Community site session details

Session Id : UAv7ZD3kDeieSnLa78k6AR
Power Apps - Building Power Apps
Answered

Barcode reader and syntax First(variable).Value

Like (2) ShareShare
ReportReport
Posted on 21 Feb 2025 07:16:58 by 5
Hi, everybody,
 
please help me. I am creating an application in Power Apps. I have a barcode scanner and below that a text input field (TextInput). Until yesterday, everything worked fine. I scanned a QR code with the reader and it showed up in the text box. Today, when I continue to develop, the application writes me an error. It looks like the variables have stopped working. Has anyone solved a similar problem?
 
Barcode reader -> OnScan:
Set(varQR,BarcodeReader1.Barcodes);
Set(varQrCode,First(varQR).Value)
 
TextInput -> Default:
varQRCode (the First(Barcodereader1.barcodes).Value syntax does not work either)
 
Isn't this some issue in Microsoft or something? 
 
Thank you for your help!
Categories:
  • Verified answer
    SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on 21 Feb 2025 at 10:35:39
    Barcode reader and syntax First(variable).Value
    Hi all, 
     
    I found a workaround in one of the posts mentioned below: 
     
    To resolve this I just had to change the version of power apps to : 3.25021.9
    I think all the version like 3.25022.8 or upper have the same issue.
    If you have the same just change manually the version here :
     
    There have been a lot of topics lately:
  • Zizlik Profile Picture
    43 on 21 Feb 2025 at 10:12:35
    Barcode reader and syntax First(variable).Value
    I can confirm, I switched the application to Authoring version: 3.25021.9 and everything is running smoothly
    (I tried the newer version 3.25023.2 but BarcodeReader1.Barcodes doesn't work there either.)
  • RB-21020710-0 Profile Picture
    5 on 21 Feb 2025 at 09:33:55
    Barcode reader and syntax First(variable).Value
    I found that the application in version: 3.25022.8 is not working.

    The application works in version: 3.25021.9

    So it is possible to revert to an older version in the settings.
     
     
  • RB-21020710-0 Profile Picture
    5 on 21 Feb 2025 at 09:14:11
    Barcode reader
    @Zizlik 
    Hi, 
    Yeah, I have the same problem as you. Everything works on the older released version, but I have a development error in make.powwerapps.com. 
    Looks like some syntax problem with First(variable).Value.
  • Zizlik Profile Picture
    43 on 21 Feb 2025 at 09:00:10
    Barcode reader
    Hi everybody,
     
    I've been having the exact same problem... I've had a working app for a few months now, and it just started crashing a few days ago 
    UpdateContext({scannedValue: First(BarcodeReader1.Barcodes).Value})
     
    BarcodeReader1.Barcodes = Error. (JSON parsing error, expected 'object' but got 'array'.)
     
    But strangely, the published application still works, but I see errors in https://make.powerapps.com/ (so I can't publish a new version)
     
    The function 'First' has some invalid arguments.
    BarcodeReader1
    .OnScan

    Invalid argument type (Record). Expecting a Table value instead.
    BarcodeReader1
    .OnScan

    Name isn't valid. 'Value' isn't recognized.
    BarcodeReader1
    .OnScan

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 78 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 38

Overall leaderboard
Loading started