I have a workflow with a modal dialog action. The modal dialog contains a workflow action with MergeType=FullMerge
and a context mapping of the original context store. In the last action a record of one entity is deleted and for another entity one record is deleted and one added. When merging the workflow ends with an error.
2024-04-05 08:32:53,321 [14] ERROR Origam.Server.Controller.AbstractController - There is no row at position 0.
System.IndexOutOfRangeException: There is no row at position 0.
at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
at Origam.DA.DatasetTools.MergeDataTable(DataTable inout_dtTarget, DataTable in_dtSource, IList`1 changeList, IDictionary`2 expressions, MergeParams mergeParams) in D:\a\1\s\backend\Origam.DA.Service\DatasetTools.cs:line 640
at Origam.DA.DatasetTools.MergeDataSet(DataSet inout_dsTarget, DataSet in_dsSource, IDictionary`2 changeList, MergeParams mergeParams) in D:\a\1\s\backend\Origam.DA.Service\DatasetTools.cs:line 330
at Origam.Server.ServerEntityUIActionRunnerClient.ProcessWorkflowResults(UserProfile profile, ExecuteActionProcessData processData, DataSet sourceData, DataSet targetData, EntityWorkflowAction entityWorkflowAction, ArrayList changes) in D:\a\1\s\backend\Origam.Server\Common\ServerEntityUIActionRunnerClient.cs:line 199
at Origam.Gui.EntityUIActionRunner.ExecuteWorkflowAction(ExecuteActionProcessData processData) in D:\a\1\s\backend\Origam.Gui\EntityUIActionRunner.cs:line 160
at Origam.Server.ServerEntityUIActionRunner.PerformAppropriateAction(ExecuteActionProcessData processData) in D:\a\1\s\backend\Origam.Server\Common\ServerEntityUIActionRunner.cs:line 66
at Origam.Gui.EntityUIActionRunner.ExecuteAction(String sessionFormIdentifier, String requestingGrid, String entity, String actionType, String actionId, Hashtable parameterMappings, List`1 selectedIds, Hashtable inputParameters) in D:\a\1\s\backend\Origam.Gui\EntityUIActionRunner.cs:line 61
at Origam.Server.ServerCoreUIService.ExecuteAction(ExecuteActionInput input) in D:\a\1\s\backend\Origam.Server\ServerCoreUIService.cs:line 517
at Origam.Server.Controller.UIServiceController.<>c__DisplayClass26_0.<ExecuteAction>b__0() in D:\a\1\s\backend\Origam.Server\Controller\UIServiceController.cs:line 250
at Origam.Server.Controller.AbstractController.RunWithErrorHandler(Func`1 func) in D:\a\1\s\backend\Origam.Server\Controller\AbstractController.cs:line 120