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 :
Microsoft Dynamics NAV (Archived)

Index out of bounds

(0) ShareShare
ReportReport
Posted on by 1,893

4861.UU.png

0181.uu1.png

whenever try to fetch the vendor ledger entry report..getting this error msg...

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at

    Check the arrays This error comes up because data is going more than whatever size you define for array

    Increase the size of array

  • Verified answer
    Binesh Profile Picture
    7,885 on at

    Hello manish,
    Check your Array variables dimensions, as per your screenshot you declare array variables,

    Open your report in design, and then open Global or Local variables, see bellow variables.
    arrAppliedDate
    ArrAppliedExternalDocNo
    arrAppliedDocNo
    arrAppliedAmount
    These variables has less index, so increment the index size
    for increment size: just select variable and then go to property and increment the dimension size.

    for example, if dimension is 5 then put 10 or based on your requirement.

    Let us know if you have any issues....

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    seems that i is greater than the array dimension.

  • mmv Profile Picture
    11,471 on at

    Hi,

    Please check your array dimension and try to debug to find out the no. of times the loop is executed.  

  • Suggested answer
    Ashwini Tripathi Profile Picture
    4,624 on at

    Seems array size is smaller than the no of records you are processing.

    But if you are sure the size is sufficient then other cause could be when you enter the loop for assignment make sure your counter I is reinisialized to correct value.

  • manish.yadav Profile Picture
    1,893 on at

    Hello Sir,

    the original size was 255 now I have increased the 500...but still it is showing the same error...

    manish

  • Verified answer
    Ashwini Tripathi Profile Picture
    4,624 on at

    Have you checked the counter i is it getting initialized to proper value before you enter the loop.

    Also have you tried to count no of records your Ledger Entry is fetching for each iteration.

  • manish.yadav Profile Picture
    1,893 on at

    Now I increased the size 255 to 2500...

    Now..error msg is not coming.

    manish

  • Verified answer
    Binesh Profile Picture
    7,885 on at

    Good,

    now if your query is solved then verify the answer, so others member also can be benefited.

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans