web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

QR Code Report

(4) ShareShare
ReportReport
Posted on by 556
Hello, 
 

We’re encountering this error on one of our reports that includes QR codes, but it doesn’t occur on all reports. What could be causing this issue?

 
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    97,931 Super User 2026 Season 1 on at
    Does the "Show details" section contain any detailed information?
    It doesn't seem to be a problem with the QR code; it looks like a problem with the array. Hope the following can give you some hints.
     
    Thanks.
    ZHU
  • LF-16052033-0 Profile Picture
    556 on at
    @YUN ZHU here is the show details related to this error message. 
     


    Error message:
    A call to IDAutomation.NetStandard.QRCode.FontEncoder.QRCode.EncodeQR failed with this message: Index was outside the bounds of the array.

    Internal session ID:
    d4824385-a107-4a43-adc8-dd8846bf29df

    Application Insights session ID:
    320f2f1e-d17f-4aed-a8f5-2a6b342bee8b

    Client activity id:
    37483468-9ebd-4548-a58e-304317e5191b

    Time stamp on error:
    2026-02-27T01:06:47.7026003Z

    User telemetry id:
    b19f89fd-411a-4465-b5be-d53b661b04b8

    AL call stack:
    "IDA 2D QR-Code Encoder"(CodeUnit 9220).EncodeFont line 12 - System Application by Microsoft version 27.3.44313.46026
    "IDAutomation 2D Provider"(CodeUnit 9221).EncodeFont line 7 - System Application by Microsoft version 27.3.44313.46026
    "ARC ProdOrder-MatRequisition"(ReportExtension 50007)."Production Order - OnAfterAfterGetRecord"(Trigger) line 29 - SENSIT Technologies LLC Customizations 
    "Report Selections"(Table 77).PrintDocumentsWithCheckDialogCommon line 37 - Base Application by Microsoft version 27.3.44313.46385
    "Report Selections"(Table 77).PrintWithDialogWithCheckForCust line 8 - Base Application by Microsoft version 27.3.44313.46385
    "Report Selections"(Table 77).PrintWithCheckForCust line 8 - Base Application by Microsoft version 27.3.44313.46385
    "Manu. Print Report"(CodeUnit 99000817).PrintProductionOrder line 12 - Base Application by Microsoft version 27.3.44313.46385
    "Firm Planned Prod. Order"(Page 99000829)."Mat. &Requisition - OnAction"(Trigger) line 2 - Base Application by Microsoft version 27.3.44313.46385
     

  • Suggested answer
    OussamaSabbouh Profile Picture
    10,862 Super User 2026 Season 1 on at
    Hello,
     
    This error occurs because the QR encoder receives invalid or unsupported input data in that specific report, such as a blank value, unsupported characters (line breaks/special Unicode), or a string exceeding the QR encoding limits, which causes the IDAutomation encoder to fail with an “Index was outside the bounds of the array” error; since Business Central uses IDAutomation barcode providers to encode report data into QR format, the fix is to validate and sanitize the source field before encoding (handle empty values, trim/remove unsupported characters, and ensure the string length is within limits), and identify the problematic record by temporarily exposing the encoded value in the dataset or debugging the report logic.
     
    Regards,
    Oussama Sabbouh
  • Suggested answer
    YUN ZHU Profile Picture
    97,931 Super User 2026 Season 1 on at
    Hi, Try my example; hopefully it will give you some hints.
    Dynamics 365 Business Central Blog Series: Adding Barcodes
     
    Thanks.
    ZHU

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 Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,155 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,043 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 955 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans