Print Page | Close Window

Circular Relationship Error

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=2417
Printed Date: 29-Jul-2026 at 12:18pm


Topic: Circular Relationship Error
Posted By: jipock
Subject: Circular Relationship Error
Date Posted: 04-Jan-2011 at 6:43am
Good Morning, all. Happy New Year..
 
I am building a DevForce Silverlight app and am getting the following error upon save:
 
"The Changes to the database were committed successfully, but an error occurred while updating the object context. The object might be in an inconsistent state. Inner Exception: A circular relationship path has been detected while enforcing a referential integrity constraints. Referential Integrity cannot be enforced on cicular relationships"
 
I'm trying to track this issue down. Please note: this application before using DevForce (using stored procedures) was working fine with no referential integrity errors.
 
The only thing I can see which *might* be an issue is the part of the Record table.
 
A Record contains information about a "trouble ticket" (think 'help desk'). The Record has associated tables like a RecordService (which holds a list of all the Services provided with an instance of the Trouble Ticket).
 
A person gets a Service provided at a specific Location. The Services and Location combination is stored in a ServiceLocation table.
 
I have the person taking the record pick an entry from the ServiceLocation table, but I record the Record Service with an entry to the Record, Service, and Location (as opposed to a ServiceLocation).
 
Code:

recordservice.Active = true;

recordservice.Record = _record;

recordservice.Service = SelectedServiceLocation.Service;

recordservice.Location = SelectedServiceLocation.Location;

Any hints as to how / where to troubleshoot and (more importantly) how to correct this? A search of the Wiki doesn't yield anything about Circular References.



Replies:
Posted By: jipock
Date Posted: 04-Jan-2011 at 7:34am
PEBCAK problem. This has been resolved...



Print Page | Close Window