NHibernate could not execute query, ORA-00904 invalid identifier

This is a pretty easy one to solve. This happens because the column attribute in the mapping file does not exist on the database being accessed.


<property  name="SpelledWrong"
              column="SPELLDWRONG"
              type="string" />    

More than likely there is a spelling mistake or the column doesn’t exist on the table being mapped.



Leave a Comment

Your email address will not be published.