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 scanner adds s...
Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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:
I have the same question (0)
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    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)," "))
  • Rahul320 Profile Picture
    47 on at

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

  • TheRobRush Profile Picture
    11,128 Moderator on at

    You would need to nest several substitutes within one another

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