GOT IT!
I set the record locking to optimistic and it started working.

Thanks alot for all the help.