Skip to main content

Notifications

Community site session details

Community site session details

Session Id : LS/jYOjjctWRdYo4mfckV6
Power Apps - Building Power Apps
Answered

Barcode scanner adds special character on datamatrix barcodes on Android, not iOS (GS)

Like (0) ShareShare
ReportReport
Posted on 4 Mar 2023 03:38:29 by 47

I have a simple canvas app that utilizes the Barcode Scanner to read a barcode and save the value to a Sharepoint text field. Some datamatrix barcodes, when scanned, recognize a special character at the beginning of the barcode that saves to the Sharepoint list. Upon copying and pasting the barcode string into Notepad++, the character is shows as "GS" which apparently translates to Group Separator. This behavior is only exhibited when scanning the barcode on Android devices. iOS devices seem to ignore this character when scanning using the camera.

 

Problem is when trying to scan that barcode on other screens to lookup the item. On Android it displays a network error, on iOS it simply doesn't find the record.

 

How can I configure the barcode scanner to ignore the GS special character (or maybe it's called a control character?)?

Categories:
  • TheRobRush Profile Picture
    11,121 Super User 2025 Season 1 on 06 Mar 2023 at 14:22:50
    Re: Barcode scanner adds special character on datamatrix barcodes on Android, not iOS (GS)

    You would need to nest several substitutes within one another

  • Rahul320 Profile Picture
    47 on 06 Mar 2023 at 14:19:31
    Re: Barcode scanner adds special character on datamatrix barcodes on Android, not iOS (GS)

    Thank you. That worked. Is there a way I can substitute all special characters, not just 29?

  • Verified answer
    TheRobRush Profile Picture
    11,121 Super User 2025 Season 1 on 05 Mar 2023 at 14:37:04
    Re: Barcode scanner adds special character on datamatrix barcodes on Android, not iOS (GS)

    If it is reading correctly from the barcode to powerapps (I am not honestly sure if it is without scanning it myself) you should be able to remedy it with something like

    Set(barcodeVal, Substitute(Self.Value,Char(29)," "))

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

#1
WarrenBelz Profile Picture

WarrenBelz 146,776 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard
Loading started