question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on Creates/Updates

See original GitHub issue

I am encountering an issue when trying to Create or Update nearly anything with the Admin UI. I enabled verbose logging and found this entry in the logs. Did my EF migration to the latest version break my database or is something going on with UI? I cant see why an UPDATE or INSERT would have a null ID.

2019-02-26 20:08:43.626 -06:00 [ERR] Exception at route /Configuration/IdentityResource/4 Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. —> System.Data.SqlClient.SqlException: Cannot insert the value NULL into column ‘Id’, table ‘IdentityServer.dbo.IdentityClaims’; column does not allow nulls. UPDATE fails. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryHasMoreResults(Boolean& moreResults) at System.Data.SqlClient.SqlDataReader.TryNextResult(Boolean& more) at System.Data.SqlClient.SqlDataReader.<>c__DisplayClass187_0.<NextResultAsync>b__1(Task t) at System.Data.SqlClient.SqlDataReader.InvokeRetryable[T](Func2 moreFunc, TaskCompletionSource1 source, IDisposable objectToDispose)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
john159753commented, Apr 5, 2019

Hey! I just got to getting the latest version from the branch. Unfortunately the issue still persists.

Since i have the source now, i am going to attempt to step through the code and try to pin point where its going wrong. I will comment my findings!

1reaction
john159753commented, Mar 19, 2019

I have not tried that, I will do a full clone (not from template) and report back.

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

CreateDirectory failed Error when Publishing Third-Party ...
In this video guide, we will cover an error you may encounter when trying to publish third-party software updates to WSUS. This exception...
Read more >
Get help with Windows upgrade and installation errors
See some of the most common upgrade and installation errors for Windows 10 and Windows 11, and what you can do to try...
Read more >
Please help identifying issues. Getting error after updating ...
Hi, I have started getting errors in starting minecraft after updating create mod to 0.5.1a/b. Below is the error message I get and...
Read more >
Error on "Create/Upgrade Database"
Hello. I'm helping on a upgrade platform from V10.0.405.0 to V11 (first release). On Configuration Tools step where we have to update the...
Read more >
Cannot create or update Item due to Error 1316
Workaround: · Delete the existing item. · Select file > right click > function "assign/update item". · File error 1316 and item error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found