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

Notifications

Announcements

No record found.

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 48
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
    Inge M. Bruvik Profile Picture
    1,105 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
    48 on at
    e
  • barbarbar Profile Picture
    48 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
    95,331 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans