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 / Barcode scanner adds s...
Power Apps
Answered

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard