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)

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

(0) ShareShare
ReportReport
Posted on by 5,569

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: "

 

*This post is locked for comments

I have the same question (0)
  • keoma Profile Picture
    32,729 on at

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

  • Rajasekhar@MS Profile Picture
    5,569 on at

    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

  • Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    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

  • keoma Profile Picture
    32,729 on at

    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.

  • Community Member Profile Picture
    on at

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

  • mmv Profile Picture
    11,471 on at

    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

  • Rajasekhar@MS Profile Picture
    5,569 on at

    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

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at

    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.

  • Ben Dyson Profile Picture
    32 on at

    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

  • Community Member Profile Picture
    on at

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

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