Search code examples
acumatica

Getting Error while creating Sales Order through code


I am Creating sales order from Opportunity through framework code in my custom plugin and ti uses transfer type with custom fields. This code is working fine in 22 R2, When I upgrade to 23 R2, I am not facing error while compiling, but throw the following error.

A data corruption state has been detected. You cannot save the changes. Copy the data you have entered and reload the page. Date and Time: 2023-11-03T12:44:11; IncidentID: 62bc4a55-2309-4a27-a519-9c99da35f9bb; Name: Aggregate Validation: PX.Objects.SO.SOOrder+openSiteCntr. You can view detailed information about the issue on the System Events tab of the System Monitor (SM201530) form.

While debugging the OpenLineCtrl & Opensitecntl is not setting value and manually assigning the value is not working


Solution

  • The issue arises because the OpenLine boolean value was not updated; it remained false. Consequently, the openlincnt values were not properly updated in both the soorder DAC and the soordersite DAC.