I am having some problems with update_recordSet and CIL compilation.
In my following code, the line with the update_recordSet gives me a CIL compilation error:
CIL-generering: Error during dispatch of Expr.
private void TestUpdateSalesLine()
{
SalesLine salesLine;
ttsbegin;
while select forUpdate salesLine
where salesLine.SalesId == "123456"
{
salesLine.LineNum = -SalesLine.LineNum;
salesLine.update();
}
// Tried to use update_recordSet for this but got a CIL error:
// CIL-generering: Error during dispatch of Expr.
update_recordSet salesLine
setting LineNum = -salesLine.LineNum
where salesLine.SalesId == "123456";
ttscommit;
}
Why do I get that error?
*This post is locked for comments
I have the same question (0)