1

For our ASP.NET MVC application we are seeing the following in our error log:

IdentifierGenerationException could not read a hi value from table 'nhibernatehiloidentity' using the where clause (entity = '[table name]')

The [table name] can vary. We know there is an entry in the nhibernatehiloidentity table as it would fail each time, which it does not. My current theory is locking is randomly preventing a read from the hilo table. However, the above exception is the only information we have to go off of.

Has anyone else had issues with generating hilo Ids in NHibernate?

.NET 4.5, MVC 5.2, SQL Server 2012 and NHibernate 4.

Stefan Steinegger
  • 63,782
  • 15
  • 129
  • 193
Adam Schentag
  • 61
  • 1
  • 3

1 Answers1

0

I don't use Hi-Lo this way, but I guess that the record with the corresponding table name doesn't exist. Hi-lo tables need to be initialized with a value. Just a guess.

Stefan Steinegger
  • 63,782
  • 15
  • 129
  • 193
  • As mentioned I know there is an entry in the nhibernatehiloidentity table. This is occurring in production. If there wasn't an entry it would result in an immediate support call. – Adam Schentag Jun 14 '16 at 13:16