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 :
Small and medium business | Business Central, N...
Answered

Index Out of Bound.

(0) ShareShare
ReportReport
Posted on by 54
Hello everyone
 
i'm a newbie on this so please excuse me if my question is simple.
 
when sending a posted sales invoice report i get the error Index Out of Bound.
 
I understand that there is a limit to the size of the array or dimension. where can i change that ?
 
thank you
I have the same question (0)
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at
    Maybe you can share the code that is failing?
    I think it would be easier to help you then.
  • barbarbar Profile Picture
    54 on at
    e
  • barbarbar Profile Picture
    54 on at
    ​
    AL call stack: 
    "Crt Events"(CodeUnit 50300).SaveReportsAndAattachement line 107 -  Ext by
    "Crt Events"(CodeUnit 50300).Table_DocumentMailing_OnBeforeSendEmail line 4 -  Ext by 
    "Document-Mailing"(CodeUnit 260).OnBeforeSendEmail(Event) line 2 - Base Application by Microsoft
    "Document-Mailing"(CodeUnit 260).EmailFileInternal line 44 - Base Application by Microsoft
    "Document-Mailing"(CodeUnit 260).EmailFile line 7 - Base Application by Microsoft
    "Report Selections"(Table 77).SendEmailDirectly line 117 - Base Application by Microsoft
    "Report Selections"(Table 77).SendEmailToCustDirectly line 27 - Base Application by Microsoft
    "Report Selections"(Table 77).SendEmailToCust line 37 - Base Application by Microsoft
    "Document Sending Profile"(Table 60).SendToEMail line 27 - Base Application by Microsoft
    "Document Sending Profile"(Table 60).TrySendToEMailGroupedMultipleSelection line 40 - Base Application by Microsoft
    "Document Sending Profile"(Table 60).Send line 15 - Base Application by Microsoft
    "Document Sending Profile"(Table 60).SendCustomerRecords line 22 - Base Application by Microsoft
    "Sales Invoice Header"(Table 112).SendRecords line 14 - Base Application by Microsoft
    "Posted Sales Invoice"(Page 132)."SendCustom - OnAction"(Trigger) line 6 - Base Application by Microsoft
    
    ​
     
  • Suggested answer
    YUN ZHU Profile Picture
    101,995 Super User 2026 Season 1 on at
    Hi, please share your code.
    As for the definition of Array, you can refer to the following example.
     
    Hope this helps.
    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,371 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,806 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,371

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans