this indexing 51 in the array is outside of the permited range

kanika
Member Posts: 247
Hi experts!!
This message appears when I run the test report to close the inventory period,
and the report is blank so I can not know which products are in negative or open.
when I activate the debugger, the code stops in the report 1004
AddError (Text)
ErrorCounter: = ErrorCounter + 1;
ErrorText [ErrorCounter]: = Text;
How I can run the test and see the report?
thanks!!!!
This message appears when I run the test report to close the inventory period,
and the report is blank so I can not know which products are in negative or open.
when I activate the debugger, the code stops in the report 1004
AddError (Text)
ErrorCounter: = ErrorCounter + 1;
ErrorText [ErrorCounter]: = Text;
How I can run the test and see the report?
thanks!!!!
0
Best Answers
-
Hey Kanika,
Can you please check ErrorText variables dimension. If its 50 or under 50 then you will get this error as indexing is going more then the given value. If its a complete standard code and you have done nothing then you should crosscheck how come its going more then 50. If some thing you have custom added then you can increase the value from 50 to more to get rid of this error.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/5 -
can you open the report in the Object Designer?
If yes, got through the menu View - C\A Globals.
Select the variable ErrorText, press Shift-F4 (for Properties), change the value in Dimensions from 50 to a higher number.
good luck.\\The truth exists in seven versions.5 -
Follow the steps what Peter mentioned, making it a more easier
1. Open Development Environment.
2. Press Shift + F12
3. Navigate to reports.
4. Open your Report.
5. Press Alt + V + B /
6. Select Error text Varible.
7. Press Shift + F4
8. Increase the Dimension Value from 50 to some higher number.
Cheers
Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/5
Answers
-
Hey Kanika,
Can you please check ErrorText variables dimension. If its 50 or under 50 then you will get this error as indexing is going more then the given value. If its a complete standard code and you have done nothing then you should crosscheck how come its going more then 50. If some thing you have custom added then you can increase the value from 50 to more to get rid of this error.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/5 -
I'm sure there are more than 50 errors between negative stock and open mov.
How can I change the code to accept more than 51?
0 -
can you open the report in the Object Designer?
If yes, got through the menu View - C\A Globals.
Select the variable ErrorText, press Shift-F4 (for Properties), change the value in Dimensions from 50 to a higher number.
good luck.\\The truth exists in seven versions.5 -
Follow the steps what Peter mentioned, making it a more easier
1. Open Development Environment.
2. Press Shift + F12
3. Navigate to reports.
4. Open your Report.
5. Press Alt + V + B /
6. Select Error text Varible.
7. Press Shift + F4
8. Increase the Dimension Value from 50 to some higher number.
Cheers
Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/5 -
OK!! Thanks!!!
I can already see all!!
Thanks again!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