This question is locked. New answers and comments are not allowed.
hi,
I have been working in Telerik ORM for about few months now and now I have stumbled upon a problem which I am unable to solve.
The ORM returns and Exception which states that there exists a column in a table in my database called Id2, which it is unable to find.
Unfortunately, I don't have any columns with the name specified above.
I have already gone through some posts with similar issues before, but unfortunately none helped me to solve the problem.
The mappings in my database is absolutely fine as I have triple checked them all.
Can some one please help me out with this issue? I am stuck with this for almost two days now.
The exact exception is mentioned below
Thanks,
Soham,
.NET Technology Specialist
I have been working in Telerik ORM for about few months now and now I have stumbled upon a problem which I am unable to solve.
The ORM returns and Exception which states that there exists a column in a table in my database called Id2, which it is unable to find.
Unfortunately, I don't have any columns with the name specified above.
I have already gone through some posts with similar issues before, but unfortunately none helped me to solve the problem.
The mappings in my database is absolutely fine as I have triple checked them all.
Can some one please help me out with this issue? I am stuck with this for almost two days now.
The exact exception is mentioned below
Telerik.OpenAccess.Exceptions.DataStoreException was unhandled by user code Message=Insert of '547427948-' failed: Telerik.OpenAccess.RT.sql.SQLException: The column name is not valid. [ Node name (if any) = ,Column name = Id2 ] at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.execute() at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.execute() at OpenAccessRuntime.Relational.RelationalStorageManager.generateInserts(NewObjectOID oid, Int32 index, ClassMetaData cmd, PersistGraph graph, Int32[] fieldNos, CharBuf s, Object[] oidData, IntArray toUpdateIndexes)INSERT INTO [Some_table] ([Description], [GlobalId], [Name], [Reference], [Id2], [Foreignkeyd]) VALUES (?, ?, ?, ?, ?, ?)(set event logging to all to see parameter values) Telerik.OpenAccess.RT.sql.SQLException: The column name is not valid. [ Node name (if any) = ,Column name = Id2 ] at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.execute() at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.execute() at OpenAccessRuntime.Relational.RelationalStorageManager.generateInserts(NewObjectOID oid, Int32 index, ClassMetaData cmd, PersistGraph graph, Int32[] fieldNos, CharBuf s, Object[] oidData, IntArray toUpdateIndexes) Source=Telerik.OpenAccess CanRetry=false StackTrace: at Telerik.OpenAccess.SPI.Backends.ThrowException(Exception e) at OpenAccessRuntime.ExceptionWrapper.Throw() at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.handleException(Exception x) at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.internalCommit(Boolean phase) at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.commit() at OpenAccessRuntime.EnlistableObjectScope.CommitChanges() at Telerik.OpenAccess.OpenAccessContextBase.SaveChanges(ConcurrencyConflictsProcessingMode failureMode) at Telerik.OpenAccess.OpenAccessContextBase.SaveChanges() at ThreatModeler.API.Threat.Add(IThreatElement element) in C:\Users\Sohaam\Documents\Visual Studio 2010\Projects\ThreatModeler.API\ThreatModeler.API\Threat.cs:line 105 InnerException: Telerik.OpenAccess.RT.sql.SQLException Message=The column name is not valid. [ Node name (if any) = ,Column name = Id2 ] Source=Telerik.OpenAccess.Runtime Description=SQLState=;The column name is not valid. [ Node name (if any) = ,Column name = Id2 ] ErrorCode=25503 Number=25503 StackTrace: at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.execute() at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.execute() at OpenAccessRuntime.Relational.RelationalStorageManager.generateInserts(NewObjectOID oid, Int32 index, ClassMetaData cmd, PersistGraph graph, Int32[] fieldNos, CharBuf s, Object[] oidData, IntArray toUpdateIndexes) InnerException: Thanks,
Soham,
.NET Technology Specialist