Hi DBGuy,
Thanks for the warm welcome and for your suggestion.
I've since realised that the error is also occurring when I run the export manually from the front end, but not the back end. In other words, when I run the export from the back end, It seems to parse all the records perfectly but...