Applies to: Clarion C5.5H with the default Process template against MS SQL 2000, as reported.
Problem
In the ProcessManager TakeRecord embed (after the parent code) the poster inserts rows into several other tables for each record and deletes the source record, inside LOGOUT(3, ...) with COMMIT or ROLLBACK. Only every second record of the process view was handled. Without the delete, or without LOGOUT/COMMIT, every record was handled. Using Access:file.Insert() instead of ADD() made no difference.
Solution
What fixed it for the poster: stop using Clarion's transaction statements and send the SQL ones through the file.
- Replace LOGOUT with
MyFile{Prop:SQL}='BEGIN TRAN'. - Replace ROLLBACK with
MyFile{Prop:SQL}='ROLLBACK'. - Replace COMMIT with
MyFile{Prop:SQL}='COMMIT'.
After that a failed insert backed out all rows of that record and the process went on to the next record.
Other suggestions in the thread, not tested by the poster:
- Delete after the process is finished: collect the primary IDs in a queue and delete from the queue.
- For batch deletes, process the records backwards so the record pointer stays at the last record.
- Check that you are not advancing to the next record yourself in the embed.
- Delete the primary file record rather than the view record, or delete through PROP:SQL (the poster tried both and the first gave "record not available", the second the same every-second-record result).
Caveats
- The poster said he did not understand what was happening in the background; the thread gives no cause.
- Transactions sent as text through PROP:SQL are outside Clarion's own transaction handling.
- Only one poster reported the fix, on one project.
Today (2026)
Not re-tested. The cause was never explained, so check the result on your own driver and server before relying on it.
Sources: Parker M. (Mar 2007, the question and the fix), Sean H., Steven P., Arnor B., Bjarne H., Tom R., Paul H. (Mar 2007) in softvelocity.clarion.databasedrivers.