Skip to content

PK-Sim project error while opening #3583

Description

@Gautamvj

Hi All, I have faced an issue while I was saving my project in PK-Sim. The error is pasted below. The .pksim file is not opening and throwing me with this error. Is there a way I can fix this or I need to simulate everything from scratch? Thank you!

Image

Application:
PK-Sim® 12.2.112

could not execute query
[ SELECT this_.Id as id1_13_1_, this_.CommandId as commandid2_13_1_, this_.Discriminator as discriminator3_13_1_, this_.CommandInverseId as commandinverseid4_13_1_, this_.CommandType as commandtype5_13_1_, this_.ObjectType as objecttype6_13_1_, this_.Description as description7_13_1_, this_.ExtendedDescription as extendeddescription8_13_1_, this_.Visible as visible9_13_1_, this_.Comment as comment10_13_1_, this_.Sequence as sequence11_13_1_, this_.ParentId as parentid12_13_1_, commandmet2_.Id as id1_13_0_, commandmet2_.CommandId as commandid2_13_0_, commandmet2_.Discriminator as discriminator3_13_0_, commandmet2_.CommandInverseId as commandinverseid4_13_0_, commandmet2_.CommandType as commandtype5_13_0_, commandmet2_.ObjectType as objecttype6_13_0_, commandmet2_.Description as description7_13_0_, commandmet2_.ExtendedDescription as extendeddescription8_13_0_, commandmet2_.Visible as visible9_13_0_, commandmet2_.Comment as comment10_13_0_, commandmet2_.Sequence as sequence11_13_0_, commandmet2_.ParentId as parentid12_13_0_ FROM COMMANDS this_ left outer join COMMANDS commandmet2_ on this_.ParentId=commandmet2_.Id ]
[SQL: SELECT this_.Id as id1_13_1_, this_.CommandId as commandid2_13_1_, this_.Discriminator as discriminator3_13_1_, this_.CommandInverseId as commandinverseid4_13_1_, this_.CommandType as commandtype5_13_1_, this_.ObjectType as objecttype6_13_1_, this_.Description as description7_13_1_, this_.ExtendedDescription as extendeddescription8_13_1_, this_.Visible as visible9_13_1_, this_.Comment as comment10_13_1_, this_.Sequence as sequence11_13_1_, this_.ParentId as parentid12_13_1_, commandmet2_.Id as id1_13_0_, commandmet2_.CommandId as commandid2_13_0_, commandmet2_.Discriminator as discriminator3_13_0_, commandmet2_.CommandInverseId as commandinverseid4_13_0_, commandmet2_.CommandType as commandtype5_13_0_, commandmet2_.ObjectType as objecttype6_13_0_, commandmet2_.Description as description7_13_0_, commandmet2_.ExtendedDescription as extendeddescription8_13_0_, commandmet2_.Visible as visible9_13_0_, commandmet2_.Comment as comment10_13_0_, commandmet2_.Sequence as sequence11_13_0_, commandmet2_.ParentId as parentid12_13_0_ FROM COMMANDS this_ left outer join COMMANDS commandmet2_ on this_.ParentId=commandmet2_.Id]

database disk image is malformed
database disk image is malformed

Stack trace:

at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.Step(SQLiteStatement statement)
   at System.Data.SQLite.SQLiteDataReader.PrivateRead(Boolean ignoreSingleRow)
   at NHibernate.Driver.NHybridDataReader.Read()
   at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder)
   at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder)
   at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder)
 --- End of inner exception stack trace ---
   at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder)
   at NHibernate.Loader.Criteria.CriteriaLoaderExtensions.LoadAllToList[T](IList`1 loaders, ISessionImplementor session)
   at NHibernate.Impl.SessionImpl.List[T](CriteriaImpl criteria)
   at NHibernate.Impl.CriteriaImpl.List[T]()
   at OSPSuite.Infrastructure.Serialization.ORM.MetaData.CommandMetaDataRepository.LoadFromSession(ISession session)
   at OSPSuite.Infrastructure.Serialization.ORM.MetaData.HistoryItemMetaDataRepository.All(ISession session)
   at OSPSuite.Infrastructure.Serialization.ORM.History.HistoryManagerPersistor.allHistoryItemMetaData(ISession session)
   at OSPSuite.Infrastructure.Serialization.ORM.History.HistoryManagerPersistor.Load(ISession session)
   at PKSim.Infrastructure.Serialization.WorkspacePersistor.LoadSession(ICoreWorkspace workspace, String fileFullPath)
   at PKSim.Infrastructure.Workspace.<>c__DisplayClass17_0.<OpenProject>b__0()
   at PKSim.Infrastructure.Workspace.LoadProject(Action projectLoadAction)
   at PKSim.Infrastructure.Workspace.OpenProject(String fileFullPath)
   at PKSim.Presentation.Services.ProjectTask.<>c__DisplayClass35_0.<openProjectFromFile>g__openProject|0()
   at OSPSuite.Presentation.Services.HeavyWorkManager.doWork()
   at OSPSuite.Presentation.Services.HeavyWorkManager.<.ctor>b__10_0(Object o, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions