I’ve several lazy loaded screens. Some of the fields on master and detailed parts are calculated based on custom user-defined functions. When I’m clicking on different records on master screen to quickly I got this error. When I’m slow enough, the error is not shown.
The server log shows:
2021-10-18 10:12:15,670 [123] ERROR Origam.ServerCore.Controller.AbstractController - An item with the same key has already been added. Key: 1
System.ArgumentException: An item with the same key has already been added. Key: 1
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at Origam.Server.SessionStore.GetRowsFromStore(String entity, IEnumerable ids) in D:\a\1\s\origam-source\Origam.ServerCommon\Session Stores\SessionStore.cs:line 1448
at Origam.Server.SessionStore.RowStatesForDataLessSessions(String entity, Object[] ids, Object profileId) in D:\a\1\s\origam-source\Origam.ServerCommon\Session Stores\SessionStore.cs:line 1392
at Origam.Server.SessionStore.RowStates(String entity, Object[] ids) in D:\a\1\s\origam-source\Origam.ServerCommon\Session Stores\SessionStore.cs:line 1386
at Origam.ServerCore.ServerCoreUIService.RowStates(RowStatesInput input) in D:\a\1\s\origam-source\Origam.ServerCore\ServerCoreUIService.cs:line 438
at Origam.ServerCore.Controller.UIServiceController.<>c__DisplayClass19_0.<RowStates>b__0() in D:\a\1\s\origam-source\Origam.ServerCore\Controller\UIServiceController.cs:line 189
at Origam.ServerCore.Controller.AbstractController.RunWithErrorHandler(Func`1 func) in D:\a\1\s\origam-source\Origam.ServerCore\Controller\AbstractController.cs:line 120