Discovered the problem. I used an item on the invoice that isn't usually used, and it had a style code that doesn't exist any more. Changed the style code and it was fine.
Thanks for such a quick response - and on a Sunday, yet.