I have built a transactionsafe script by making all edits through relationships and then commiting/reverting a superparent. (I am using toddgeist's transaction module)
The script runs correctly if there is no error and it reverts if I lock a record that is touched in the process.
There is a pdf inserted into a containerfield during the process. If I do not place this containerfield on the layout of the superparent, I get "error 102 - field missing" as expected.
BUT during this step the record seems to be commited as I can see in the data viewer - Get(RecordOpenCount) goes down to 0 .
Therefore I can not revert properly in this scenario.
Is this expected behaviour?