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 in Abp.EntityHistory.EntityHistoryHelper: Unexpected State - Unchanged

See original GitHub issue

Versions

  • Abp 4.10.0
  • .Net Framework 4.6.2

Description and Source Error

Log is full of the following lines not present with Abp v.4.9.0;

12:14:13. T 53] ERROR (Abp.EntityHistory.EntityHistoryHelper:0) - Unexpected State - Unchanged
12:14:13. T 53] ERROR (Abp.EntityHistory.EntityHistoryHelper:0) - Unexpected State - Unchanged
12:14:14. T 53] ERROR (Abp.EntityHistory.EntityHistoryHelper:0) - Unexpected State - Unchanged
...

Severity level

Non blocking issue

Remarks

Browsing the source code of EntityHistoryHelper, I have seen some refactoring and the introduction of a base class.
Logs lines are due to a

default:
    Logger.ErrorFormat("Unexpected {0} - {1}", nameof(entityChangeType), entityChangeType);

I don’t know if it hides some major problem.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ryancyqcommented, Oct 18, 2019

INFO probably won’t be suitable. Having State in Detached/Unchanged is normal. Therefore, such additional inform should be debug level

0reactions
gpcaretticommented, Oct 18, 2019

Or INFO, instead

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object reference not set to an instance of an object (Entity ...
I feel this is happening because Telerik is using second thread to some job with the report and this second thread doesn't have...
Read more >
AbpEntityChanges is not recorded for module
(Since you have AbpEntityChanges table in your database, it means you do.) public class ReportDesignDbContext : AbpDbContext { // IDbSets // ...
Read more >
Articles Tutorials | AspNet Boilerplate
ASP.NET Boilerplate provides an infrastructure to automatically log all entity and property changes. The saved fields for an entity change are: The related ......
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