Changing rows when editing ends in an error

Editing a field in a master or child record and moving to another master record produces a popup saving dialog. When you select “Yes” the changes are stored. But when you try to edit another record, you end up with an error Data row not found by the provided ID. when editing the master record or Column 'refRentalObjectId' does not allow nulls. when editing a child record. After the save MasterRecord with the old RowId is called, not the new one.

image

   "ClassName":"System.Data.NoNullAllowedException",
   "Message":"Column 'refRentalObjectId' does not allow nulls.",
   "Data":null,
   "InnerException":null,
   "HelpURL":null,
   "StackTraceString":"   at System.Data.DataColumn.CheckNullable(DataRow row)\r\n   
at System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent)\r\n   
at System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean suppressEnsurePropertyChanged, Int32 position, Boolean fireEvent, Exception& deferredException)\r\n   
at System.Data.DataTable.InsertRow(DataRow row, Int64 proposedID, Int32 pos, Boolean fireEvent)\r\n   
at Origam.Server.SessionStore.CreateObject(String entity, IDictionary`2 values, IDictionary`2 parameters, String requestingGrid) in D:\\a\\1\\s\\backend\\Origam.ServerCommon\\Session Stores\\SessionStore.cs:line 1578\r\n  
at Origam.Server.SaveableSessionStore.CreateObject(String entity, IDictionary`2 values, IDictionary`2 parameters, String requestingGrid) in D:\\a\\1\\s\\backend\\Origam.ServerCommon\\Session Stores\\SaveableSessionStore.cs:line 205\r\n   
at Origam.ServerCore.ServerCoreUIService.CreateObject(CreateObjectInput input) in D:\\a\\1\\s\\backend\\Origam.ServerCore\\ServerCoreUIService.cs:line 334\r\n   
at Origam.ServerCore.Controller.UIServiceController.<>c__DisplayClass20_0.<CreateObject>b__0() in D:\\a\\1\\s\\backend\\Origam.ServerCore\\Controller\\UIServiceController.cs:line 212\r\n   
at Origam.ServerCore.Controller.AbstractController.RunWithErrorHandler(Func`1 func) in D:\\a\\1\\s\\backend\\Origam.ServerCore\\Controller\\AbstractController.cs:line 117",
   "RemoteStackTraceString":null,
   "RemoteStackIndex":0,
   "ExceptionMethod":null,
   "HResult":-2146232026,
   "Source":"System.Data.Common",
   "WatsonBuckets":null

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.