Question

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
Was it helpful?

Solution

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 .

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top