Hey Toby,
I was actually hoping to ask you about another post you had Database locking issue
but this topic was closed so the reply link was gone.
I have the same identical problem, but you mentioned you found an error in your code causing the issue.
I don’t suppose you remember what the error in your code was? I’ve tried everything I can think of to find the cause, but can’t track it.
Cheers,
Scott