Our intranet site stopped working over night. A short look into the errorlog showed me a

EntityCommandExecutionException - An error occurred while executing the command

with the inner exception

Devart.Data.Oracle.OracleException - {"ORA-00904: \"MONTH\": invalid identifier"}

The exception occurs during a selection with LINQ. The where statement simply compares DateTime's Month and Year against some integer.

The oracle table itself simply has 4 columns (number:id PRIMARY KEY, varchar2:text, number:sum, date: creationdate).

I can reproduce the problem local with a new devart model and with a ADO.NET entity model as well against the same database.

The environment:

  • Devart dotConnect for oracle 6.10.96.0
有帮助吗?

解决方案

Please check your .NET Framework version.

.NET v4.5 is supported by dotConnect for Oracle starting from the 7.2.77 version: http://www.devart.com/dotconnect/oracle/revision_history.html .

其他提示

I faced similar type of problem in one of the project where database first and entity framework used. I found that the model file's attribute is different from database table field. When the field were made similar, it worked without any problem. Please check if the model and database table are similar in which "MONTH" is located. I hope it helps.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top