SBX - Search With Button

SBX - Forum Post Title

Navision Application Crashes + Index is not in a valid range for this collection.

Microsoft Dynamics NAV Forum

Rajasekhar Y asked a question on 23 Jan 2015 2:50 AM
My Badges

Question Status

Suggested Answer

Hi All

When opening Item Ledger Entries for some particular user the Navision Application crashes only some times

Event log details are as below:

Level Date and Time Source Event ID Task Category
Error 22.01.2015 09:26:44 MicrosoftDynamicsNAVClient 0 None "Type: System.ArgumentOutOfRangeException
Message:
Index is not in a valid range for this collection.
Parameter name: index
StackTrace:
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.<>c__DisplayClass6.<DoRethrowWithCatchException>b__4()
at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(Func`1 execute)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(Func`1 execute)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(Exception exception, Boolean designMode)
Source: Microsoft.Dynamics.Nav.Client.WinClient
HResult: -2146233086
----------------------------------
Type: System.ArgumentOutOfRangeException
Message:
Index is not in a valid range for this collection.
Parameter name: index
ParamName: index

Application Error

Level Date and Time Source Event ID Task Category
Error 22.01.2015 09:26:44 Application Error 1000 (100) "Faulting application name: Microsoft.Dynamics.Nav.Client.exe, version: 7.1.36366.0, time stamp: 0x533b28c3
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0x80131623
Fault offset: 0x01074ef9
Faulting process id: 0x1da8
Faulting application start time: 0x01d0361d1c9e9f43
Faulting application path: C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe
Faulting module path: unknown
Report Id: 657a0cb4-a210-11e4-80d4-00188b8bd8cf
Faulting package full name:
Faulting package-relative application ID: "

 

Reply
Franz Kalchmair responded on 23 Jan 2015 6:31 AM

this is an error caused by an array with to small dimension size . best you debug.

Reply
Rajasekhar Y responded on 23 Jan 2015 8:23 AM
My Badges

Hi Archer

If it is the dimensions issue, it should happen for all the users, we have checked there are no variables specified with the dimensions 

 

Thanks

Rajasekhar.Y

Reply
Suresh Kulla responded on 23 Jan 2015 2:03 PM

Delete the metadata for that page for those users and try.  The tables where you delete that metadata are

User Metadata and Page Data Personlization

Reply
Franz Kalchmair responded on 12 Feb 2015 10:27 AM

i had a similiar error, when clicking on the effective costs link in the statistics page of an prod. order. normally the capacity ledger entries page opens correctly, but sometimes the windows client crashes completely without any error message. but there is an entry in the eventlog saying "Index is not in a valid range for this collection."

after hours of researching and testing (debugging did not help), it turned out, that there is a bug in the nav standard.

the cap. ledger entries page is called by page.run(0,CapLedgEntry). the CapLedgEntry records are filtered and looped. in the loop some changes are made to some of fields of a record. when done, the record is marked(true). at the end of the loop the records are filtered with markedonly(true). but ... sometimes the last record processed in the loop is not marked. the record pointer (the index of the recordset) points to that record and is given to the page when called. bam! crash is ready. why that? the (last) record is not part of the recordset given to the page.run call, but the index points to that record. that is not allowed.

Reply
tfenster responded on 17 Apr 2015 1:05 AM

Did you find any way to solve this? We currently seem to have a similar situation

Reply
Mahesh responded on 17 Apr 2015 1:13 AM
My Badges

Hi,

As mentioned by Suresh, try to delete the User Metadata for that specific user (you may filter that specific page also) and try.

Best Regards,

MMV

Reply
Rajasekhar Y responded on 17 Apr 2015 1:14 AM
My Badges

Hi

in my case it is only for a particular user, the "Reset user Specific Settings" worked for me, if it is happening for all users can you check the event viewer log for more details

Regards

Rajasekhar.Y

Reply
Tharanga Chandrasekara responded on 20 Oct 2016 10:48 PM
My Badges
Suggested Answer

Hi,

I think you have already found a solution for the issue. However just want to log my answer here, so in future it will be useful for some other user.

Today I got the exact same issue with one of 2013 R2 client. Tried deleting metadata and all sort of solutions, but did not fix the error. Page can be run using development environment, however when I try to open the page using navigation pane, then NAV get crash.

Page was a list page and it was categorized under Administration. I just change it to type List and everything start to work.

Don't know the exact root cause, but it worked.

Reply
Ben Dyson responded on 24 Oct 2016 11:54 AM

Hi All

I was getting seemingly Random NAV Crashes on a NAV2013R2 client on the Base install. 

The Event viewer was getting the same issues as described above, one information and one error every time NAV crashed. Again I'd tried to delete the User Metadata and Page Data Personlization, delete all Personalization and went on to look at changing profiles as I believe the profiles override some of the User settings. But all to no avail. 

The issue in this case was the Windows Task Bar Preview images. When the user opened NAV, then a Sales Quote (Not limited to quotes), switched back to the main NAV screen and then hovered over the Quote page and clicked on it NAV would crash with the same errors. 

I believe that this is a more recent issue between the application and Windows10, but not likely something that more recent Cumulative Updates would encounter (Speculation, I don't have this replicated in a local environment). So I looked to disable the the Previews. In the end I found a Registry Edit to put a pause in place:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ExtendedUIHoverTime"=dword:000003e8

Adding this DWORD (32)to the registry managed to fix the issue. I was hoping merely to delay the image popping up, but it seems that by delaying the image shown that the problem has gone away. 

I hope that this might well help someone else out there, or that someone can build on this for their own solution. 

Regards

Ben Dyson

Reply
Francesco Cannillo responded on 24 Sep 2018 3:04 AM

Did you solve this problem? I've same problem with Surface Laptop and this happens only when i use docking station with dual monitor.

Reply
Tharanga Chandrasekara responded on 20 Oct 2016 10:48 PM
My Badges
Suggested Answer

Hi,

I think you have already found a solution for the issue. However just want to log my answer here, so in future it will be useful for some other user.

Today I got the exact same issue with one of 2013 R2 client. Tried deleting metadata and all sort of solutions, but did not fix the error. Page can be run using development environment, however when I try to open the page using navigation pane, then NAV get crash.

Page was a list page and it was categorized under Administration. I just change it to type List and everything start to work.

Don't know the exact root cause, but it worked.

Reply

SBX - Two Col Forum

SBX - Migrated JS