I started getting a weird exception when I run a command foundset.deleteAllRecords():
“Error during evaluation:Wrapped java.lang.IndexOutOfBoundsException: bitIndex < 0: -1”
This never happened before on the same line.
The foundset has 180 records, everything seems to be legit, however the exception pops up.
Any idea what the issue is?
Do you have other code triggering when deleting records from this table like in a tableEvent or something ?
Yes, there is an event that fires for onRecordDelete() on that table, but it returns true as it should.
Then there is an event that has no code for afterRecordDelete() and the debugger does go in there.
I cleaned up the table through a direct db query and the problem has gone. Weird, but ok.