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)

Send to Excel error: System.ArgumentOutOfRangeException in NAV RTC 2009

(0) ShareShare
ReportReport
Posted on by 329

RTC crashes on multiple computers when Send to Excel function is used on one pages. All other areas/pages work well and there are no errors or crashes. Also, this does not happen with Classic, only RTC and only one page. We have restarted all servers, synchronized logins, compiled, created new entries in order to rule out data error but no success.

The event log message says: index is not in a valid range for this collection. Parameter name: Index

Here are some of the details from the event log:

Type: System.ArgumentOutOfRangeException

Message:

Index is not in a valid range for this collection.

Parameter name: index

StackTrace:

at Microsoft.Dynamics.Nav.Client.ExceptionHandler.<>c__DisplayClass2.<DoRethrowWithCatchException>b__0()

at Microsoft.Dynamics.Nav.Client.ExceptionHandler.ExecuteAndCatchExceptions(Func`1 execute)

at Microsoft.Dynamics.Nav.Client.ExceptionHandler.DoExecute(Func`1 execute)

at Microsoft.Dynamics.Nav.Client.ExceptionHandler.DoRethrowWithCatchException(Exception exception)

Source: Microsoft.Dynamics.Nav.Client

----------------------------------

Thanks in advance for any tips and suggestions!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Neville Foyn Profile Picture
    4,320 on at

    Hi

    That error mean that the NAV page is trying to pass something to excel that doesn't fit, the index leads me to think that this might be the number of lines or number of columns (It wont be the columns unless there is a crazy number of columns?), try and set a filter so that you have only 10 lines on the page then export and see if you get the error, the new version of Excel (2010 and up i think) can handle a million lines and the old (prior versions) can handle 65 000 lines

    Cheers

    Nev

  • Verified answer
    airikas Profile Picture
    329 on at

    Thanks Nev! I found out what the issue was in this case. The problem is with the page design and programming. There are two sections and Excel is not able to create a tab for the bottom section - list exports well but not the remaining part of the page. Basically, this would require additional code change in order to fix.

  • Neville Foyn Profile Picture
    4,320 on at

    Glad you got it sorted

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)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans