Open-Systems-Pharmacology / PK-Sim

PK-Sim® is a comprehensive software tool for whole-body physiologically based pharmacokinetic modeling
Other
107 stars 51 forks source link

New issue #2918

Closed dong9bak closed 4 months ago

dong9bak commented 5 months ago

Application: PK-Sim® 11.3.208

could not execute query [ SELECT this_.Id as id1_220, this_.Name as name2_220, this_.Description as description3_220, this_.Version as version4_220, this_.ContentId as contentid5_220 FROM PROJECTS this ] [SQL: SELECT this.Id as id1_220, this_.Name as name2_220, this_.Description as description3_220, this_.Version as version4_220, this_.ContentId as contentid5_220 FROM PROJECTS this_]

SQL logic error no such table: PROJECTS

Stack trace:

at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)
   at System.Data.SQLite.SQLiteCommand.BuildNextCommand()
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(DbCommand cmd)
   at NHibernate.Loader.Loader.GetResultSet(DbCommand st, QueryParameters queryParameters, ISessionImplementor session, IResultTransformer forcedResultTransformer)
   at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer)
   at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer)
   at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer)
 --- End of inner exception stack trace ---
   at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer)
   at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
   at NHibernate.Impl.CriteriaImpl.List(IList results)
   at NHibernate.Impl.CriteriaImpl.List[T]()
   at PKSim.Infrastructure.Serialization.ProjectPersistor.projectFromDatabase(ISession session)
   at PKSim.Infrastructure.Serialization.ProjectPersistor.Save(PKSimProject projectToSave, ISession session)
   at PKSim.Infrastructure.Serialization.WorkspacePersistor.SaveSession(ICoreWorkspace workspace, String fileFullPath)
   at PKSim.Infrastructure.Workspace.SaveProject(String fileFullPath)
   at PKSim.Presentation.Services.ProjectTask.<>c__DisplayClass21_0.<saveProjectToFile>b__0()
   at OSPSuite.Presentation.Services.HeavyWorkManager.doWork()
   at OSPSuite.Presentation.Services.HeavyWorkManager.<.ctor>b__9_1(Object o, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

  1. The extension of the Template database file where it is inserted is TemplateDbUser, and such a file is not found anywhere.
  2. Where is the Observer file (extension pkml)? Open Systems Pharmacology -> Is this the AllCalculationMethods file of MoBi 11.3? If I insert this, I get an error.

PK-Sim

Yuri05 commented 5 months ago

You need to create an Observer in MoBi first and export it as pkml. After that, you can import this observer in PK-Sim.