Open-Systems-Pharmacology / PK-Sim

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

PK-Analysis did not work #2878

Open shbae1211 opened 8 months ago

shbae1211 commented 8 months ago

After updating to PK-Sim version 11.2, I received the following error when opening results from an previous model made in previous version of PK-SIM:

Application: PK-Sim® 11.2.142

Value cannot be null. Parameter name: source

Stack trace:

at System.Linq.OrderedEnumerable`2..ctor(IEnumerable`1 source, Func`2 keySelector, IComparer`1 comparer, Boolean descending)
   at System.Linq.Enumerable.OrderBy[TSource,TKey](IEnumerable`1 source, Func`2 keySelector)
   at PKSim.Core.Mappers.ProtocolToSchemaItemsMapper.MapFrom(Protocol protocol)
   at PKSim.Presentation.Presenters.Simulations.GlobalPKAnalysisPresenter.<CanCalculateGlobalPK>b__33_0(Compound compound)
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   at PKSim.Presentation.Presenters.Simulations.GlobalPKAnalysisPresenter.CanCalculateGlobalPK()
   at PKSim.Presentation.Presenters.Simulations.PopulationPKAnalysisPresenter.CalculatePKAnalyses(IPopulationDataCollector populationDataCollector, ChartData`2 timeProfileChartData, PopulationStatisticalAnalysis populationAnalysis)
   at PKSim.Presentation.Presenters.Charts.EditTimeProfileAnalysisChartPresenter.calculatePKAnalysis()
   at PKSim.Presentation.Presenters.Charts.EditTimeProfileAnalysisChartPresenter.showAnalysis()
   at PKSim.Presentation.Presenters.Charts.EditTimeProfileAnalysisChartPresenter.setViewMode(Boolean shouldShowAnalysis)
   at PKSim.Presentation.Presenters.Charts.EditTimeProfileAnalysisChartPresenter.SwitchPKAnalysisPlot()
   at PKSim.UI.Views.Charts.BasePKAnalysisWithChartView.switchPKAnalysis()
   at OSPSuite.UI.Controls.BaseUserControl.<>c__DisplayClass23_0.<OnEvent>b__0()
   at OSPSuite.Utility.Extensions.ExceptionExtensions.DoWithinExceptionHandler(Object callerObject, Action actionToExecute)
Yuri05 commented 8 months ago

This is a known issue which will be fixed soon. Until then, please try this workaround