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

(6) ShareShare
ReportReport
Posted on by 587
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
    100,132 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
    587 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
    15,136 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
    100,132 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
  • Melissa Reichenbacher Profile Picture
    10 on at

    We are experiencing the exact same issue.  It started about a week ago on a custom label that prints from a Released Production Order.  This report has been working since 2022.  We are on BC 27.3.  It could be coincidence, but I thought I would share in case it helps.
     

  • Melissa Reichenbacher Profile Picture
    10 on at
    Follow-up on my comment...our problem turned out to be that a user started printing a report intended for lotted items using a non-lotted item.  The barcode gave this error message because it couldn't handle "no lot".  Adjusting the barcode to handle both conditions solved our problem.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,957 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 956 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 645 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans