Print Page | Close Window

ID Generator Problem

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2590
Printed Date: 29-Jul-2026 at 8:31pm


Topic: ID Generator Problem
Posted By: jipock
Subject: ID Generator Problem
Date Posted: 29-Mar-2011 at 6:59am
Good Morning,
 
I'm trying to track down an error I have a user testing our application has experienced in a Silverlight 4.0 application.  
 
"IdGenerator problem - not all temp ids converted to permanent ids". 
 
I do not have any custom IIdGenerator classes, and my Query Strategy is 100% DataSourceOnly (I don't use any kind of caching that I'm aware of). This has clearly happened one time (I have an error log entry to show for it), but I cannot reproduce the problem again.
 
Any suggestions on how to track this issue down??



Replies:
Posted By: jipock
Date Posted: 29-Mar-2011 at 7:25am
As a quick note - I reviewed my error logs a little more.. In a 1.5 months, with 8,500 records, this has happened four times. The ID field on the table is an identity value. Creating new records on this table has not been an issue before.


Posted By: sbelini
Date Posted: 29-Mar-2011 at 4:14pm
Hi jipock,
 
Here's a few places to look at:
 
- Check for partial saves; (i.e. SaveChangesAsync(listOfEntitiesToBeSaved) instead of SaveChangesAsync())
- Check for multiple saves; (i.e. calling SaveChangesAsync() before a previous SaveChangesAsync() was completed)
- Check for server-side entity creation and saves (i.e. via any of the interceptors and/or RPC method)
 
Silvio.


Posted By: jipock
Date Posted: 05-Apr-2011 at 5:27am
Thanks, Silvio.
 
Bullet point #1 - I only do a partial save in one place.
Bullet point #2 doesn't appear to be an issue..
Bullet point #3 - I do a couple of sever-side entity manipulations, but not where ther error is coming up.
 
I'll keep digging.. Also, this hasn't happened again since I've first posted.
 
 
 



Print Page | Close Window