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 GP (Archived)

Management Reporter - trying to insert a column and MR closes w/message - Index and length must refer to a location within the string. Parameter names lengeth

(0) ShareShare
ReportReport
Posted on by

Error from event viewer

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.

Parameter name: length

   at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)

   at Microsoft.Dynamics.Performance.Reporting.ReportDesigner.ColumnControl.GetUpdatedCalcFormula(String calcFormula, Int32 startingIndex, Int32 offset)

   at Microsoft.Dynamics.Performance.Reporting.ReportDesigner.ColumnControl.UpdateCalculationColumnReferences(Int32 startingIndex, Int32 offset)

   at Microsoft.Dynamics.Performance.Reporting.ReportDesigner.ColumnControl.UpdateColumnReferences(Int32 startingIndex, Int32 offset)

   at Microsoft.Dynamics.Performance.Reporting.ReportDesigner.ColumnControl.columnGrid_ColumnAdded(Object sender, DataGridViewColumnEventArgs e)

   at System.Windows.Forms.DataGridView.OnColumnAdded(DataGridViewColumnEventArgs e)

   at Microsoft.Dynamics.Performance.Common.Controls.AdvancedDataGridView.OnColumnsChanged(DataGridViewColumnEventArgs e, Boolean added)

   at Microsoft.Dynamics.Performance.Common.Controls.AdvancedDataGridView.OnColumnAdded(DataGridViewColumnEventArgs e)

   at System.Windows.Forms.DataGridView.OnAddedColumn(DataGridViewColumn dataGridViewColumn)

   at System.Windows.Forms.DataGridView.OnInsertedColumn_PreNotification(DataGridViewColumn dataGridViewColumn)

   at System.Windows.Forms.DataGridViewColumnCollection.Insert(Int32 columnIndex, DataGridViewColumn dataGridViewColumn)

   at Microsoft.Dynamics.Performance.Common.Controls.AdvancedDataGridView.InsertNewColumnsAt(Int32 numberColumnsToAdd, Int32 columnGridIndex)

   at Microsoft.Dynamics.Performance.Common.Controls.AdvancedDataGridView.InsertColumnsBasedOnSelection()

   at Microsoft.Dynamics.Performance.Reporting.ReportDesigner.ColumnControl.InsertSelectedColumns()

   at Microsoft.Dynamics.Performance.Reporting.ReportDesigner.ColumnControl.insertColumnToolStripMenuItem_Click(Object sender, EventArgs e)

   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

   at System.Windows.Forms.ToolStrip.WndProc(Message& m)

   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)

   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()

   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()

   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)

   at Microsoft.Dynamics.Performance.Reporting.ReportDesigner.ReportDesignerMain.StartDesigner(ApplicationOptions options)

   at Microsoft.Dynamics.Performance.Reporting.ReportDesigner.ReportDesignerMain.Main(String[] commandLine)

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Did you ever get an answer for this?  I'm having the same trouble after recently upgrading our dynamics GP.

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 GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans