Thanks ACDC for the reply,
We have had to restore data on this particular site in the past few days, so it sounds like you are pointing me in the right direction.
I've checked the tables for the ID referenced in the error message and there is one record with that ID already existing, and it seems that Aware is trying to allocate that ID a second time.
Sounds like your MAX_.ID could be exactly my problem.
I'll check it out and post again later.
Thanks again,
Peter