I'm getting this error when using Spring + JPA (Repositories) + Hibernate to update an existing record in a table.
2019-07-01 17:47:47.526 WARN o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 8114, SQLState: 37000 2019-07-01 17:47:47.527 ERROR o.h.engine.jdbc.spi.SqlExceptionHelper : Error converting data type nvarchar to numeric. 2019-07-01 17:47:47.527 ERROR o.h.i.ExceptionMapperStandardImpl : HHH000346: Error during managed flush [org.hibernate.exception.SQLGrammarException: could not execute statement] 2019-07-01 17:47:47.562 ERROR c.a.p.controller.AdminClaimController : July 1, 2019 5:47:47 PM PDT org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute statement
This update operation worked recently, but it isn't working now.
The Stackoverflow question is here
How am I supposed to know what column or data value this problem is related to?
End of Stackoverflow question being asked
Unfortunately, the table has 145 columns.
The error occurs when calling CrudRepository.save(Object myObject))
Since I am sure I would agree with them, please put your comments about how tables should be designed in a discussion forum somewhere else as that is obviously not what my question is about - thank you and I promise I will read them later! :D