Hi everyone,
I'm running into an issue with the retired Barcode Scanner control in Power Apps.
I have a Canvas App that has been in production for more than a year and uses the legacy Barcode Scanner control. The scanning experience works perfectly for our use case because the user scans a barcode and it is processed immediately.
I'm now extending this existing app and need to add additional barcode scanning functionality. However, I can no longer add the legacy Barcode Scanner control to the app and only have access to the newer Barcode Reader control.
The problem is that:
- My existing app already uses the legacy Barcode Scanner.
- Adding the new Barcode Reader would result in two different scanning experiences within the same app.
- The Barcode Reader introduces an additional user interaction step, which removes the main advantage of the legacy scanner for our process.
- Our use case is simply scanning a barcode and immediately processing the result, without extra user actions.
According to Microsoft's documentation, the legacy Barcode Scanner should still be available when enabling the"Legacy barcode scanner" setting under Settings → Upcoming Features → Retired. [learn.microsoft.com], [lab.algebra.hr]. However, in my environment, this setting is not available. The only related option I can see is"Web barcode scanner", which appears under Experimental features instead.
I also tried copying an existing Barcode Scanner control and even copying an entire screen from another app that already contains the control, but I receive the following error:
Details:
error PA1001 : An error occurred while parsing PaYaml.
Error code: YamlInvalidSyntax
Reason: Exception during deserialization
Note:
Make sure to use the Source Code schema, which is the only supported format.
Session ID: 1134fd1d-0843-4ff2-9292-f1fdc656e19b
From the documentation, my understanding is that the legacy Barcode Scanner is still supported for existing apps, although it has been retired and replaced by the Barcode Reader. [learn.microsoft.com], [lab.algebra.hr]
My questions are:
- Is there currently any way to re-enable or add the legacy Barcode Scanner control in a Canvas App?
- Has Microsoft removed the Legacy barcode scanner toggle from some environments or tenants?
- Is there a supported migration path that provides the same "scan and immediately process" experience as the legacy scanner?
- Has anyone successfully worked around this issue in a production app?
Any insights would be greatly appreciated.
Thanks!