Hi,
I assume you know that the 'DUPREC' error message means 'Duplicate Record'?
I would guess that he is/was trying to write an identical CDHDR record to the database, perhaps because he did not update the date/time in the custom program.
cheers
Paul