I have an existing database which was generated by DataObjects, in the last couple days something must have been changed because we are getting the following error(domainbuildlog) when DataObjects is trying to build the domain:

[Waiting for parallel schema extraction completion] 0,313: Exception: DataObjects.NET.Exceptions.DatabaseModelExtractorException: Couldn't extract columns. Inner exception: System.InvalidCastException: Object cannot be cast from DBNull to other types. ---> System.InvalidCastException: Object cannot be cast from DBNull to other types. at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ToInt32(Object value) at DataObjects.NET.Database.Drivers.Oracle.OracleExtractor.BuildColumnLookupCache() --- End of inner exception stack trace ---

       Server stack trace: 
          at DataObjects.NET.Database.Drivers.Oracle.OracleExtractor.BuildColumnLookupCache()
          at DataObjects.NET.Database.Drivers.Oracle.OracleExtractor.GetAllColumns(String table)
          at DataObjects.NET.DatabaseModel.Extractors.DatabaseModelExtractor.ExtractModel(DomainUpdateMode updateMode)
          at DataObjects.NET.Domain.ExtractDatabase(DomainBuildContext context, DomainUpdateMode updateMode)
          at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
          at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
          at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

       Exception rethrown at [0]: 
          at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
          at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
          at DataObjects.NET.Domain.BuildActionDelegate.EndInvoke(IAsyncResult result)
          at DataObjects.NET.Domain.Build(DomainUpdateMode updateMode)

I assume there is some data in the database which is not valid, but I have no idea where to look. Is there a way to find out on which data & databasetable DataObjects is failing?

All columntypes in the database should be correct, I compared them to a newly generated database.

We are using an older version of DataObjects.net (3.8.9).

asked Jan 17 '13 at 03:50

Xta's gravatar image

Xta
5112

edited Jan 17 '13 at 03:52

Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

Subscription:

Once you sign in you will be able to subscribe for any updates here

Tags:

×574
×3

Asked: Jan 17 '13 at 03:50

Seen: 2,544 times

Last updated: Jan 17 '13 at 03:52

powered by OSQA