Hi Paul,
It is a standard error but custom one...
What I mean is the table is already having the entry you are showing in the debug mode activate update debugger and put a breakpoint on this line.
Check the entries in this table and check if the entry with this key is already existing in the PBED table.
Also check if the number range [if any for this field] has been reset.
Regards