Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to increase the Max Iteration?

(0) ShareShare
ReportReport
Posted on by

Getting the following error "The indexing 101 in the array is outside of the permitted range" in the Forecasting period end processing for one location.

1732.pic01a.png

2727.pic02.png

Some one, somewhere else mentioned that he resolved this issue by setting all instances of Max Iteration to 500 for the loops and set the dimension values to 500 for each array variable in C / AL.

I do not have any clue of how to do this. If some one can guide me with simple instructions, it will be a tremendous help!

Greatly appreciated.

Oswald

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: How to increase the Max Iteration?

    Well, that's the post I saw, and mentioned in my post. How to do that two steps? :)

    Any guidance or directions...................

    Thanks.

    Oswald.

  • Suggested answer
    Roberto Stefanetti Profile Picture
    12,998 on at
    RE: How to increase the Max Iteration?

    hi,

    look at this post

    www.mibuso.com/.../viewtopic.php

    Max Iteration

    "1)  you need to set all instances of Max Iteration to 500 for the loops > You need to modify C/AL code using partner's development license  

    Array dimension

    2) set the dimension values to 500 for each array variable" > You can set the dimension of an array variable by viewing "C/AL Globals" (or local variabiles) selecting your variable and pressing SHIFT+F4 (or property)

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans