Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Management Reporter 2.1.6041.36 Server Event View Error - Violation of PRIMARY KEY constraint

Posted on by 435

We are randomly receiving the error message below.  It can happen on different reports to different people on different days.  There is no consistency as to when we are receiving it.  Does anyone have any guidance?  Thank you.

System.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_ReportColumnHeader'. Cannot insert duplicate key in object 'dbo.ReportColumnHeader'. The duplicate key value is (2588, 1, 1).

The statement has been terminated.

  at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)

  at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()

  at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)

  at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)

  at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)

  at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)

  at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)

  at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

  at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)

  at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)

  at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)

  at System.Data.Linq.ChangeDirector.StandardChangeDirector.DynamicInsert(TrackedObject item)

  at System.Data.Linq.ChangeDirector.StandardChangeDirector.Insert(TrackedObject item)

  at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)

  at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)

  at Microsoft.Dynamics.Performance.Reporting.NativeReport.ReportDataContext.<>c__DisplayClassf7.<Save>b__e0(ReportDataContext context)

  at Microsoft.Dynamics.Performance.Reporting.NativeReport.ReportDataContext.Execute(Boolean writable, Action`1 execute)

  at Microsoft.Dynamics.Performance.Reporting.NativeReport.NativeReportService.<>c__DisplayClass2e.<SaveStructure>b__2d()

  at Microsoft.Dynamics.Performance.Reporting.Security.Service.SecureServiceBase.SecureExecuteInternal[TResult](Func`1 hasPermission, Func`1 executor)

  at Microsoft.Dynamics.Performance.Reporting.Common.Service.ServiceBase.BaseExecute[TResult](Func`1 executor)

*This post is locked for comments

  • RE: Management Reporter 2.1.6041.36 Server Event View Error - Violation of PRIMARY KEY constraint

    I've seen other posts regarding the violation of Primary Key but I have not really seen an answer.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans