Thanks all for your answers. The script is too big to post here but I think you may be right about the new reporting system having changed it's fields. I'm waiting to hear back from the vendor's developers to see if they can tell me what differences there are between the old and new versions.
Cheers
K