Every so often, I will get this error message:
IdGenerator problem - not all temp ids converted to permanent ids.
If you are using auto-incrementing ids check that the FixupTempIds SaveOption is set to InSaveListOnly.
If I ignore it, it seem to go away and everything seems to work ok. This started recently after I changed the backend from MySQL to SqlServer.
I am using the usual Sql Server auto incrementing fields.
As per another post:
Here's a few places to look at:
- Check for partial saves; (i.e. SaveChangesAsync(listOfEntitiesToBeSaved) instead of SaveChangesAsync())
Not doing this.
- Check for multiple saves; (i.e. calling SaveChangesAsync() before a previous SaveChangesAsync() was completed)
The save is being done during the RPC and uses SaveChanges, not SaveChangesAsync();
- Check for server-side entity creation and saves (i.e. via any of the interceptors and/or RPC method)
This is true - I am creating a saving the entity on the server during an RPC call.
Greg
Edited by gregweb - 14-Apr-2011 at 5:57pm