Andre:
In the getLastPK method, what is the generated SQL error saying that is stored to m.cSQL?
What buffermode are you using on the view? Have you tracked through the update record code to see the point that the initial commit fails. The getLastPK method should be executed after the record is saved and if the PK is returned, CM updates the view with the PK from SQL server and then resaves it.
-=Gary