SQL error saving a tech note due to a duplicate entry

Hello experts,
While I was working on a project this error appeared during the save of a note. Any solution ? Please help me to skip this error because I really need to finish my project on time. Also please tell me how can I prevent this to appear in the future.
Thank you experts !

Com.webobjects.eoaccess.EOGeneralAdaptorException:EvaluateExpression failed: Next exception:SQL State:23000—error code:1062—msg: Duplicate entry ‘829’ for key ‘PRIMARY’
