
Hello,
my client crashes when I run Item Tracing from Lot No. Information. Is there a code fix? I haven't found something..
Following steps to reproduce
- using Business Central 14.9 - 14.0.39277.0
- create a new item in Cronus database with Item tracking code Chargealle
- purchase this item with x lots, create Lot No Information (in my case 5)
- create a transfer order and post it with x lots (in my case 3)
- go to item ledger entries, open the Lot No Information list, select a lot which is transferred and try to open Item Tracing
the Event Viewer says
Type: System.ArgumentOutOfRangeException
Message:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
StackTrace:
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.<>c__DisplayClass11_0.<DoRethrowWithCatchException>b__0()
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
StackTrace:
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.<>c__DisplayClass11_0.<DoRethrowWithCatchException>b__0()
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)
----------------------------------
Type: System.ArgumentOutOfRangeException
Message:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
ParamName: index
StackTrace:
at System.Collections.ArrayList.get_Item(Int32 index)
at System.Windows.Forms.DataGridViewRowCollection.SharedRow(Int32 rowIndex)
at System.Windows.Forms.DataGridViewRowCollection.get_Item(Int32 index)
at Microsoft.Dynamics.Framework.UI.WinForms.RepeaterControlAdapter.FirstVisibleCellIndex(Int32 rowIndex, Int32 columnIndex)
at Microsoft.Dynamics.Framework.UI.WinForms.RepeaterControlAdapter.SelectIndex(Int32 newIndex)
at Microsoft.Dynamics.Framework.UI.WinForms.RepeaterControlAdapter.DataGrid_PostHandleCreated(Object sender, EventArgs e)
at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessGridView.OnPostHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessGridView.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Source: mscorlib
HResult: -2146233086
StackTrace:
at System.Collections.ArrayList.get_Item(Int32 index)
at System.Windows.Forms.DataGridViewRowCollection.SharedRow(Int32 rowIndex)
at System.Windows.Forms.DataGridViewRowCollection.get_Item(Int32 index)
at Microsoft.Dynamics.Framework.UI.WinForms.RepeaterControlAdapter.FirstVisibleCellIndex(Int32 rowIndex, Int32 columnIndex)
at Microsoft.Dynamics.Framework.UI.WinForms.RepeaterControlAdapter.SelectIndex(Int32 newIndex)
at Microsoft.Dynamics.Framework.UI.WinForms.RepeaterControlAdapter.DataGrid_PostHandleCreated(Object sender, EventArgs e)
at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessGridView.OnPostHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessGridView.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Thank you in advance!
Regards
Bianca
This should be resolved in a higher build number. It is a platform issue.
From the callstack this looks like the following TFS entry with CU 12
"The Windows client crashes after you select all list lines and then change filters.".
I would then deploy the latest CU 17 since all CUs are cumulative