rhiskey / vkaudioposter_Console

VK.com wall posts generator
GNU Affero General Public License v3.0
0 stars 0 forks source link

Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. #54

Closed rhiskey closed 3 years ago

rhiskey commented 3 years ago

View details in Rollbar: https://rollbar.com/first3395/vkaudioposter_Console/items/11/

Traceback (most recent call last):
  File "Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch", line 182, in Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.Consume(Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader)
  File "Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch", line 71, in Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection)
  File "Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor", line 140, in Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(System.Collections.Generic.IEnumerable`1[Microsoft.EntityFrameworkCore.Update.ModificationCommandBatch] commandBatches, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection)
  File "Microsoft.EntityFrameworkCore.Storage.RelationalDatabase", line 12, in Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(System.Collections.Generic.IList`1[Microsoft.EntityFrameworkCore.Update.IUpdateEntry] entries)
  File "Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager", line 22, in Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(System.Collections.Generic.IList`1[Microsoft.EntityFrameworkCore.Update.IUpdateEntry] entriesToSave)
  File "Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager", line 29, in Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Microsoft.EntityFrameworkCore.DbContext _, System.Boolean acceptAllChangesOnSuccess)
  File "MySql.EntityFrameworkCore.Storage.Internal.MySQLExecutionStrategy", line unknown, in MySql.EntityFrameworkCore.Storage.Internal.MySQLExecutionStrategy.Execute(TState state, System.Func`3[Microsoft.EntityFrameworkCore.DbContext,TState,TResult] operation, System.Func`3[Microsoft.EntityFrameworkCore.DbContext,TState,Microsoft.EntityFrameworkCore.Storage.ExecutionResult`1[TResult]] verifySucceeded)
  File "Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager", line 61, in Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(System.Boolean acceptAllChangesOnSuccess)
  File "Microsoft.EntityFrameworkCore.DbContext", line 63, in Microsoft.EntityFrameworkCore.DbContext.SaveChanges(System.Boolean acceptAllChangesOnSuccess)
  File "Microsoft.EntityFrameworkCore.DbContext", line unknown, in Microsoft.EntityFrameworkCore.DbContext.SaveChanges()
  File "L:\GitHub\vkaudioposter_Console\MySQL\DBUtils.cs", line 154, in vkaudioposter.MySQL.DBUtils.UpdatePublicationDateOfTracksAndInsertToDB(vkaudioposter_Console.Classes.FormattedPlaylist formattedPlaylist, System.DateTime publish_date, System.Int64 postId, System.Collections.Generic.List`1[VkNet.Model.Attachments.MediaAttachment] atts, System.Int64 ownerId, System.String message, System.Collections.Generic.List`1[vkaudioposter.SpotyVKTrack] searchList, System.String photourl)
  File "L:\GitHub\vkaudioposter_Console\Program.cs", line 1547, in vkaudioposter_Console.Program.PosterOnWall(System.Collections.Generic.List`1[VkNet.Model.Attachments.MediaAttachment] attachments, vkaudioposter_Console.Classes.FormattedPlaylist fmtPlaylist, System.String photourl, System.Collections.Generic.List`1[vkaudioposter.SpotyVKTrack] SearchingList)
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.Traceback (most recent call last):
  File "MySql.Data.MySqlClient.MySqlStream", line unknown, in MySql.Data.MySqlClient.MySqlStream.ReadPacket()
  File "MySql.Data.MySqlClient.NativeDriver", line 38, in MySql.Data.MySqlClient.NativeDriver.GetResult(System.Int32& affectedRow, System.Int64& insertedId)
  File "MySql.Data.MySqlClient.Driver", line 73, in MySql.Data.MySqlClient.Driver.NextResult(System.Int32 statementId, System.Boolean force)
  File "MySql.Data.MySqlClient.MySqlDataReader", line 195, in MySql.Data.MySqlClient.MySqlDataReader.NextResult()
  File "Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch", line 108, in Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.Consume(Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader)
MySql.Data.MySqlClient.MySqlException: Column 'Playlist_ID' cannot be null