Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Index Out of Bound.

Posted on by 40
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
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,333 Super User 2024 Season 2 on at
    Index Out of Bound.
    Hi, please share your code.
    As for the definition of Array, you can refer to the following example.
     
    Hope this helps.
    Thanks.
    ZHU
  • barbarbar Profile Picture
    barbarbar 40 on at
    Index Out of Bound.
    ​
    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
    
    ​
     
  • barbarbar Profile Picture
    barbarbar 40 on at
    Index Out of Bound.
    e
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    Index Out of Bound.
    Maybe you can share the code that is failing?
    I think it would be easier to help you then.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,219 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans