Question Status

Verified
Airi Ifinedo asked a question on 10 Jul 2013 9:23 AM

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!

Reply
Verified Answer
Airi Ifinedo responded on 12 Jul 2013 8:36 AM

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.

Reply
Suggested Answer
Neville Foyn responded on 11 Jul 2013 5:58 PM

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

Neville Foyn
NAV Developer, Consultant & Trainer
MCTS NAV, CRM, Sharepoint, SQL
MCSA SQL 2012
MCITP NAV
MCT 

Reply
Suggested Answer
Neville Foyn responded on 11 Jul 2013 5:58 PM

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

Neville Foyn
NAV Developer, Consultant & Trainer
MCTS NAV, CRM, Sharepoint, SQL
MCSA SQL 2012
MCITP NAV
MCT 

Reply
Verified Answer
Airi Ifinedo responded on 12 Jul 2013 8:36 AM

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.

Reply
Neville Foyn responded on 14 Jul 2013 4:16 PM

Glad you got it sorted

Neville Foyn
NAV Developer, Consultant & Trainer
MCTS NAV, CRM, Sharepoint, SQL
MCSA SQL 2012
MCITP NAV
MCT 

Reply