Fixed again. And I've just put something else into the scripts which I'm hoping will alleviate future errors. I finally tracked down an issue with the way I replicate the tables which occasionally caused them to be put into a read only status initially that then caused these issues. We shall see, as always let me know if anything goes wrong.