N
nadeem_far
Hello Everyone,
We have a .net application (1.1 Framework) that uses a strongly typed
dataset.
The application is in production for over 2 years.
One of the users recently reported that when he tried starting the
app. in the morning it failed and the logs showed the following error
details. After like 10 minutes or so he double clicks the app. and it
starts up with no errors.
I have tried searching on this issue and most of the threads\articles
discuss this issue in development environment. Has any one faced this
issue in production environment and most of all how to fix this
strange error.?.
The Typed dataset in question has two table only in a Master-Detail
relationship.
Source: System.Data
Message: Failed to enable constraints. One or more rows contain values
violating non-null, unique, or foreign-key constraints.
Stack Trace: at System.Data.DataSet.FailedEnableConstraints()
at System.Data.DataSet.EnableConstraints()
at System.Data.DataSet.set_EnforceConstraints(Boolean value)
at System.Data.DataTable.EndLoadData()
at System.Data.Common.DbDataAdapter.FillFromReader(Object data,
String srcTable, IDataReader dataReader, Int32 startRecord, Int32
maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String
srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
at System.Data.Common.DbDataAdapter.FillFromCommand(Object data,
Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand
command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
at Company.DataLayer.API.Database.CreateTradeCache(String
ProductID, String reportID)
at Company.DataLayer.API.Database.CreateReportCache(String
ProductID, String reportID)
at Company.DataLayer.API.Database.CreateUserCache(String userName)
at Company.DataLayer.API.Database.Login(String userName, Boolean
NotificationRequired)
Any help will be appreciated.
Nadeem
We have a .net application (1.1 Framework) that uses a strongly typed
dataset.
The application is in production for over 2 years.
One of the users recently reported that when he tried starting the
app. in the morning it failed and the logs showed the following error
details. After like 10 minutes or so he double clicks the app. and it
starts up with no errors.
I have tried searching on this issue and most of the threads\articles
discuss this issue in development environment. Has any one faced this
issue in production environment and most of all how to fix this
strange error.?.
The Typed dataset in question has two table only in a Master-Detail
relationship.
Source: System.Data
Message: Failed to enable constraints. One or more rows contain values
violating non-null, unique, or foreign-key constraints.
Stack Trace: at System.Data.DataSet.FailedEnableConstraints()
at System.Data.DataSet.EnableConstraints()
at System.Data.DataSet.set_EnforceConstraints(Boolean value)
at System.Data.DataTable.EndLoadData()
at System.Data.Common.DbDataAdapter.FillFromReader(Object data,
String srcTable, IDataReader dataReader, Int32 startRecord, Int32
maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String
srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
at System.Data.Common.DbDataAdapter.FillFromCommand(Object data,
Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand
command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
at Company.DataLayer.API.Database.CreateTradeCache(String
ProductID, String reportID)
at Company.DataLayer.API.Database.CreateReportCache(String
ProductID, String reportID)
at Company.DataLayer.API.Database.CreateUserCache(String userName)
at Company.DataLayer.API.Database.Login(String userName, Boolean
NotificationRequired)
Any help will be appreciated.
Nadeem