ApplyUpdates = Dataset not in edit or insert mode

If ruoOnPost=true, TDAMemDataTable.Post causes an error: “Dataset no in edit or insert mode.”

If I set ruoOnPost=false, TDAMemDataTable.Post succeeds. However, when I, manually, call ApplyUpdates, I get the error: “Dataset no in edit or insert mode.”

This is the only dataset displaying this behavior. There are two lookup fields. One is read only the other is not. What might cause this behavior?

can you create a simple testcase that reproduces this behavior, pls?
you can attach it here or send to support@

I created a test case; however, I was not able to reproduce that behavior. In my main app, this is the only dataset that I have noticed this behavior, with many others working fine. The error only arises when ApplyUpdates is called, either by me or by ruoOnPost. Is there anything that would cause ApplyUpdates to expect the dataset to be in dsInsert or dsEdit modes? If I call ApplyUpdates, without calling Post, HasDelta returns false, and does not apply.

ruoPost mode is special mode when changes are sent directly to server after each change (Post/Delete), so ApplyUpdates for these tables isn’t required

Also calling of ApplyUpdates on these tables causes Post for performing above steps.

To clarify, when ruoPost is true, I do not call ApplyUpdates. There are two, different situations:

  1. ruoPost=true and I do not call ApplyUpdates. In that case, I get the dataset error as when I call post.

  2. ruoPost=false and I do call ApplyUpdates. In this case, calling post does not produce the error. I get the error when I call ApplyUpdates.

I will try tracing into the RemObjects code to see if I can find where the error is produced.