ERROR: Specified argument was out of the range of valid values. Parameter name: index

Has anyone come across this error when updating a record in the standard Contact profile iParts?

Specified argument was out of the range of valid values.
Parameter name: index Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index]
   System.Web.UI.ControlCollection.get_Item(Int32 index) +8820818
   Asi.Web.iParts.Common.PanelEditor.PanelEditorCommon.GenerateAspPanel(Panel panel, String panelDefinitionId, String subjectKey, String multipleInstanceKey, Boolean isPanelReadOnly, Boolean isDisplayView, EventHandler changeHandler, Dictionary`2& changedFields, EntityManager entityManager) +3459
   Asi.Web.iParts.Common.PanelEditor.PanelEditDialog.Page_Load(Object sender, EventArgs e) +1196
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   Asi.Web.UI.OldDisplayPageBase.OnLoad(EventArgs e) +49
   Asi.Web.UI.DisplayPageBase.OnLoad(EventArgs e) +45
   System.Web.UI.Adapters.ControlAdapter.OnLoad(EventArgs e) +14
   System.Web.UI.Control.LoadRecursive() +8998186
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Can you give details of what

Can you give details of what steps you are performing when this error occurs?

I think I have also seen

I think I have also seen this error in one of the standard contact iParts. In my situation the iPart was referencing the CsContact business object.
This business object has some fields that gets its values from an IQA query. In some case the gen table from the query did not exist. For example, FUNC_TITLE.
When I went and created the gen table and added in some values, the error went away.

Regards,
Leo

Removing fields in panel editor

Leo,

Thank you, that was definitely helpful information. I removed all the fields in the Panel Editor except for work phone and it published without errors this time. I'm still having some issues with the iPart but this is definitely a clue.

Terry Hammond enSYNC Corporation Fort Worth, TX terry@ensync-corp.com