Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

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

Posted on by 5,567

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Navision Application Crashes + Index is not in a valid range for this collection.

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

  • Ben Dyson Profile Picture
    Ben Dyson 32 on at
    RE: Navision Application Crashes + Index is not in a valid range for this collection.

    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

  • Suggested answer
    TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: Navision Application Crashes + Index is not in a valid range for this collection.

    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.

  • Rajasekhar@MS Profile Picture
    Rajasekhar@MS 5,567 on at
    RE: Navision Application Crashes + Index is not in a valid range for this collection.

    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

  • mmv Profile Picture
    mmv 11,465 on at
    RE: Navision Application Crashes + Index is not in a valid range for this collection.

    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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Navision Application Crashes + Index is not in a valid range for this collection.

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

  • keoma Profile Picture
    keoma 32,675 on at
    RE: Navision Application Crashes + Index is not in a valid range for this collection.

    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.

  • Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Navision Application Crashes + Index is not in a valid range for this collection.

    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

  • Rajasekhar@MS Profile Picture
    Rajasekhar@MS 5,567 on at
    RE: Navision Application Crashes + Index is not in a valid range for this collection.

    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

  • keoma Profile Picture
    keoma 32,675 on at
    RE: Navision Application Crashes + Index is not in a valid range for this collection.

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans