Job

// Job ID: #40513
Can not find the target method.
CurrentCulture
"en-ZA"
CurrentUICulture
"en-US"
RecurringJobId
"MostReadArticles.Run"
RetryCount
10

State

2018/09/25 4:52:17 AM (+1m 59.913s) Failed

An exception occurred during performance of the job.

System.InvalidOperationException

The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.

System.InvalidOperationException: The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration. ---> System.InvalidOperationException: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.
   at System.Data.Entity.Core.Objects.ObjectStateManager.FixupKey(EntityEntry entry)
   at System.Data.Entity.Core.Objects.EntityEntry.AcceptChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.AcceptAllChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
   --- End of inner exception stack trace ---
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<ExecuteAsyncImplementation>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesInternalAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Watershed.Helpers.MostReadArticles.<Run>d__8.MoveNext() in D:\TeamFoundation\GroupEditorsBackend\Helpers\MostReadArticles.cs:line 87

+ <1ms Processing

Server:
eir15-win1:1312
Worker:
771c2ff1

+1h 49m Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+34ms Scheduled

Retry attempt 10 of 10: Google.Apis.Requests.RequestError There was an i…

Enqueue at:
2018/09/25 4:50:14 AM

+2m 49.086s Failed

An exception occurred during performance of the job.

Google.GoogleApiException

Google.Apis.Requests.RequestError There was an internal error. [500] Errors [ Message[There was an internal error.] Location[ - ] Reason[internalError] Domain[global] ]

The service analytics has thrown an exception: Google.GoogleApiException: Google.Apis.Requests.RequestError
There was an internal error. [500]
Errors [
	Message[There was an internal error.] Location[ - ] Reason[internalError] Domain[global]
]

   at Google.Apis.Requests.ClientServiceRequest`1.Execute()
   at Watershed.Helpers.GoogleAnalytics.GetAnalyticsData(String profileId, String dimensions, String[] metrics, DateTime startDate, DateTime endDate) in D:\TeamFoundation\GroupEditorsBackend\Helpers\GoogleAnalytics.cs:line 54
   at Watershed.Helpers.MostReadArticles.<Run>d__8.MoveNext() in D:\TeamFoundation\GroupEditorsBackend\Helpers\MostReadArticles.cs:line 45

+ <1ms Processing

Server:
eir15-win1:1312
Worker:
0778eaff

+1h 9m Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+ <1ms Scheduled

Retry attempt 9 of 10: Google.Apis.Requests.RequestError There was an i…

Enqueue at:
2018/09/25 2:57:15 AM

+1m 50.080s Failed

An exception occurred during performance of the job.

Google.GoogleApiException

Google.Apis.Requests.RequestError There was an internal error. [500] Errors [ Message[There was an internal error.] Location[ - ] Reason[internalError] Domain[global] ]

The service analytics has thrown an exception: Google.GoogleApiException: Google.Apis.Requests.RequestError
There was an internal error. [500]
Errors [
	Message[There was an internal error.] Location[ - ] Reason[internalError] Domain[global]
]

   at Google.Apis.Requests.ClientServiceRequest`1.Execute()
   at Watershed.Helpers.GoogleAnalytics.GetAnalyticsData(String profileId, String dimensions, String[] metrics, DateTime startDate, DateTime endDate) in D:\TeamFoundation\GroupEditorsBackend\Helpers\GoogleAnalytics.cs:line 54
   at Watershed.Helpers.MostReadArticles.<Run>d__8.MoveNext() in D:\TeamFoundation\GroupEditorsBackend\Helpers\MostReadArticles.cs:line 45

+ <1ms Processing

Server:
eir15-win1:1312
Worker:
0778eaff

+43m 16s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+ <1ms Scheduled

Retry attempt 8 of 10: Google.Apis.Requests.RequestError There was an i…

Enqueue at:
2018/09/25 1:46:23 AM

+2m 45.836s Failed

An exception occurred during performance of the job.

Google.GoogleApiException

Google.Apis.Requests.RequestError There was an internal error. [500] Errors [ Message[There was an internal error.] Location[ - ] Reason[internalError] Domain[global] ]

The service analytics has thrown an exception: Google.GoogleApiException: Google.Apis.Requests.RequestError
There was an internal error. [500]
Errors [
	Message[There was an internal error.] Location[ - ] Reason[internalError] Domain[global]
]

   at Google.Apis.Requests.ClientServiceRequest`1.Execute()
   at Watershed.Helpers.GoogleAnalytics.GetAnalyticsData(String profileId, String dimensions, String[] metrics, DateTime startDate, DateTime endDate) in D:\TeamFoundation\GroupEditorsBackend\Helpers\GoogleAnalytics.cs:line 54
   at Watershed.Helpers.MostReadArticles.<Run>d__8.MoveNext() in D:\TeamFoundation\GroupEditorsBackend\Helpers\MostReadArticles.cs:line 45

+ <1ms Processing

Server:
eir15-win1:1312
Worker:
0778eaff

+21m 51.827s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+ <1ms Scheduled

Retry attempt 7 of 10: The changes to the database were committed succes…

Enqueue at:
2018/09/25 1:00:24 AM

+2m 23.943s Failed

An exception occurred during performance of the job.

System.InvalidOperationException

The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.

System.InvalidOperationException: The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration. ---> System.InvalidOperationException: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.
   at System.Data.Entity.Core.Objects.ObjectStateManager.FixupKey(EntityEntry entry)
   at System.Data.Entity.Core.Objects.EntityEntry.AcceptChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.AcceptAllChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
   --- End of inner exception stack trace ---
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<ExecuteAsyncImplementation>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesInternalAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Watershed.Helpers.MostReadArticles.<Run>d__8.MoveNext() in D:\TeamFoundation\GroupEditorsBackend\Helpers\MostReadArticles.cs:line 87

+ <1ms Processing

Server:
eir15-win1:1312
Worker:
4c35f6e5

+11m 59.054s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+140ms Scheduled

Retry attempt 6 of 10: Google.Apis.Requests.RequestError There was an i…

Enqueue at:
2018/09/25 12:35:56 AM

+2m 46.243s Failed

An exception occurred during performance of the job.

Google.GoogleApiException

Google.Apis.Requests.RequestError There was an internal error. [500] Errors [ Message[There was an internal error.] Location[ - ] Reason[internalError] Domain[global] ]

The service analytics has thrown an exception: Google.GoogleApiException: Google.Apis.Requests.RequestError
There was an internal error. [500]
Errors [
	Message[There was an internal error.] Location[ - ] Reason[internalError] Domain[global]
]

   at Google.Apis.Requests.ClientServiceRequest`1.Execute()
   at Watershed.Helpers.GoogleAnalytics.GetAnalyticsData(String profileId, String dimensions, String[] metrics, DateTime startDate, DateTime endDate) in D:\TeamFoundation\GroupEditorsBackend\Helpers\GoogleAnalytics.cs:line 54
   at Watershed.Helpers.MostReadArticles.<Run>d__8.MoveNext() in D:\TeamFoundation\GroupEditorsBackend\Helpers\MostReadArticles.cs:line 45

+ <1ms Processing

Server:
eir15-win1:1312
Worker:
4c35f6e5

+5m 4.600s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+ <1ms Scheduled

Retry attempt 5 of 10: The changes to the database were committed succes…

Enqueue at:
2018/09/25 12:21:15 AM

+2m 40.610s Failed

An exception occurred during performance of the job.

System.InvalidOperationException

The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.

System.InvalidOperationException: The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration. ---> System.InvalidOperationException: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.
   at System.Data.Entity.Core.Objects.ObjectStateManager.FixupKey(EntityEntry entry)
   at System.Data.Entity.Core.Objects.EntityEntry.AcceptChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.AcceptAllChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
   --- End of inner exception stack trace ---
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<ExecuteAsyncImplementation>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesInternalAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Watershed.Helpers.MostReadArticles.<Run>d__8.MoveNext() in D:\TeamFoundation\GroupEditorsBackend\Helpers\MostReadArticles.cs:line 87

+ <1ms Processing

Server:
eir15-win1:1312
Worker:
e9ec4a40

+2m 12.223s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+ <1ms Scheduled

Retry attempt 4 of 10: The changes to the database were committed succes…

Enqueue at:
2018/09/25 12:13:38 AM

+2m 17.900s Failed

An exception occurred during performance of the job.

System.InvalidOperationException

The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.

System.InvalidOperationException: The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration. ---> System.InvalidOperationException: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.
   at System.Data.Entity.Core.Objects.ObjectStateManager.FixupKey(EntityEntry entry)
   at System.Data.Entity.Core.Objects.EntityEntry.AcceptChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.AcceptAllChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
   --- End of inner exception stack trace ---
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<ExecuteAsyncImplementation>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesInternalAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Watershed.Helpers.MostReadArticles.<Run>d__8.MoveNext() in D:\TeamFoundation\GroupEditorsBackend\Helpers\MostReadArticles.cs:line 87

+ <1ms Processing

Server:
eir15-win1:1312
Worker:
e9ec4a40

+1m 22.547s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+17ms Scheduled

Retry attempt 3 of 10: The changes to the database were committed succes…

Enqueue at:
2018/09/25 12:09:05 AM

+2m 7.556s Failed

An exception occurred during performance of the job.

System.InvalidOperationException

The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.

System.InvalidOperationException: The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration. ---> System.InvalidOperationException: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.
   at System.Data.Entity.Core.Objects.ObjectStateManager.FixupKey(EntityEntry entry)
   at System.Data.Entity.Core.Objects.EntityEntry.AcceptChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.AcceptAllChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
   --- End of inner exception stack trace ---
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<ExecuteAsyncImplementation>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesInternalAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Watershed.Helpers.MostReadArticles.<Run>d__8.MoveNext() in D:\TeamFoundation\GroupEditorsBackend\Helpers\MostReadArticles.cs:line 87

+ <1ms Processing

Server:
eir15-win1:1312
Worker:
87933212

+50.160s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+ <1ms Scheduled

Retry attempt 2 of 10: The changes to the database were committed succes…

Enqueue at:
2018/09/25 12:05:30 AM

+1m 54.937s Failed

An exception occurred during performance of the job.

System.InvalidOperationException

The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.

System.InvalidOperationException: The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration. ---> System.InvalidOperationException: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.
   at System.Data.Entity.Core.Objects.ObjectStateManager.FixupKey(EntityEntry entry)
   at System.Data.Entity.Core.Objects.EntityEntry.AcceptChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.AcceptAllChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
   --- End of inner exception stack trace ---
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<ExecuteAsyncImplementation>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesInternalAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Watershed.Helpers.MostReadArticles.<Run>d__8.MoveNext() in D:\TeamFoundation\GroupEditorsBackend\Helpers\MostReadArticles.cs:line 87

+ <1ms Processing

Server:
eir15-win1:1312
Worker:
575524e9

+42.283s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+204ms Scheduled

Retry attempt 1 of 10: The changes to the database were committed succes…

Enqueue at:
2018/09/25 12:02:46 AM

+2m 10.880s Failed

An exception occurred during performance of the job.

System.InvalidOperationException

The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.

System.InvalidOperationException: The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration. ---> System.InvalidOperationException: Saving or accepting changes failed because more than one entity of type 'Watershed.Models.tblMostReadArticle' have the same primary key value. Ensure that explicitly set primary key values are unique. Ensure that database-generated primary keys are configured correctly in the database and in the Entity Framework model. Use the Entity Designer for Database First/Model First configuration. Use the 'HasDatabaseGeneratedOption" fluent API or 'DatabaseGeneratedAttribute' for Code First configuration.
   at System.Data.Entity.Core.Objects.ObjectStateManager.FixupKey(EntityEntry entry)
   at System.Data.Entity.Core.Objects.EntityEntry.AcceptChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.AcceptAllChanges()
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
   --- End of inner exception stack trace ---
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStoreAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<ExecuteAsyncImplementation>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesInternalAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Watershed.Helpers.MostReadArticles.<Run>d__8.MoveNext() in D:\TeamFoundation\GroupEditorsBackend\Helpers\MostReadArticles.cs:line 87

+ <1ms Processing

Server:
eir15-win1:1312
Worker:
87933212

+ <1ms Enqueued

Triggered by recurring job scheduler

Queue:
default

2018/09/25 12:00:00 AM Created