Skip to Content
Jul 23, 2020 at 10:52 AM

RAS SDK: Modifications with RunnintTotalFieldController cannot be saved

23 Views Last edit Jul 23, 2020 at 07:50 PM 2 rev


While using RAS SDK I have encountered a problem while modifying or adding new RunningTotalFields with the RunningTotalFieldController. I have a following code, for example:

RunningTotalField tempRTF = (RunningTotalField)cDoc.DataDefinition.RunningTotalFields[0].Clone();
tempRTF .ResetCondition = ((RunningTotalField)cDoc.DataDefinition.RunningTotalFields[0]).EvaluateCondition.Replace(">", "<");
cDoc.DataDefController.RunningTotalFieldController.Modify(cDoc.DataDefinition.RunningTotalFields[0], tempRTF);


SaveAs method returns following error: "System.Runtime.InteropServices.COMException: The report application server failed".

The same happens, no matter whatever modification I do with the Running Total Field Controller. Modifications with other controllers don't cause any problems.

Is there something wrong with my code?