Cubit error: An item with the same key has already been added

Follow

This article is related to the below error:

Potential stack trace
System.ArgumentException: An item with the same key has already been added.
  at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
  at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
  at Buildsoft.Utilities.DictionaryUtility.AddRange[​,​](IDictionary`2 dictionary, IDictionary`2 other, Boolean replace)
  at Buildsoft.PhoenixTakeOff.Model.Price.PriceList.PriceListContainer.#EB5FD6D1B7C89F9E(Int32 ​, IEnumerable`1 ​, ValidateCopyArgs`1 ​)
  at Buildsoft.PhoenixTakeOff.UserInterface.Controllers.Price.#9C7B5C5AF560D218.CopyObjects(Object destinationContainer, IList`1 objects, Int32 position)
  at Buildsoft.PhoenixTakeOff.UserInterface.Controllers.Grid.GridController.#E00C445392E06F33(DragDropObjects ​, Object ​, Int32 ​)
  at Buildsoft.PhoenixTakeOff.UserInterface.Controllers.Grid.GridController.ProcessDragAndDrop(DragEventArgs e, Boolean doDrop)
  at Buildsoft.PhoenixTakeOff.UserInterface.Controllers.Grid.CustomTreelistController.TreeGrid_DragDrop(Object sender, DragEventArgs e)

Problem:

This error usually means that a single row sum reference is preventing modification of the referenced row.

Fig 1. Reference

 

Resolution:

Remove reference to overcome the error.

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.