The indexing in the array is outside of the permitted range

PaLPiTaTioN
Member Posts: 55
I declared an array of text with dimension 1. I want to store 30 values, but when I run my report, I get this error:
The indexing <num> in the array is outside of the permitted range,
where <num> was 23, and after deleting 23 it was 22, and after deleting 21..30 it was 12, and after changing some code it became 2. Does anyone what this error exactly says and how I should prevent it?
The indexing <num> in the array is outside of the permitted range,
where <num> was 23, and after deleting 23 it was 22, and after deleting 21..30 it was 12, and after changing some code it became 2. Does anyone what this error exactly says and how I should prevent it?
0
Comments
-
problem solved: I had to set dimenstion to 30, instead of 1
. Thanks to the great Navision Help that should have a topic about it
0 -
I am running a report which ITERATES by using Integer - Print Loop DataItem. The Max Iteration property on the report was set to 99 but I want it to be maximum 500 so I changed it. The report normally lets me select how many Top customers to return with the Max being 99, I wanted up to 500 so I changed all instances of Max iteration 99 to Max iteration 500.
Now I get the following error when I choose any number over 99:
:!: The indexing 101 in the array is outside of the permitted range.
What do I need to add or change? I saw the response to this original post but do not understand dimension? What do I change or add and where?Half-empy or half-full how do you view your database?
Thanks.0 -
That refers to the Dimensions property of the variable in question, which determines whether the variable is an array, and that property defines the maximum number of elements in the array. You set the max iterations of a dataitem to 500, but you're also going to need to modify the dimensions property accordingly. I don't know though if 500 is an accepted value, so make sure you test that.0
-
It works. I set all instances of Max Iteration to 500 for the loops and set the dimension values to 500 for each array variable I am using.
FYI for anyone who does not know - You can set the dimension of an array variable by viewing C/AL Globals selecting your variable and pressing SHIFT+F4. Since it was hard to find this answer for myself.
Works perfectly now!Half-empy or half-full how do you view your database?
Thanks.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions