Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when combining modules #1465

Open
PavelBal opened this issue Aug 6, 2024 · 0 comments
Open

Error when combining modules #1465

PavelBal opened this issue Aug 6, 2024 · 0 comments

Comments

@PavelBal
Copy link
Member

PavelBal commented Aug 6, 2024

The project here https://github.com/esqLABS/bug-reports/tree/cannot-open-simulation-294 was created with MoBi build 294.

When trying to create a simulation with the following configuration:

image

An error is thrown:

Application:
MoBi® 12.0.299

An item with the key 'Non-competitive NTCP transporter inhibition1' has already been added

An item with the same key has already been added.

Stack trace:

at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at OSPSuite.Utility.Collections.Cache`2.Add(TKey key, TValue value)
 --- End of inner exception stack trace ---
   at OSPSuite.Utility.Collections.Cache`2.Add(TKey key, TValue value)
   at OSPSuite.Utility.Collections.Cache`2.Add(TValue value)
   at OSPSuite.Utility.Extensions.EnumerableExtensions.Each[T](IEnumerable`1 list, Action`1 action)
   at OSPSuite.Utility.Collections.Cache`2.AddRange(IEnumerable`1 range)
   at OSPSuite.Core.Domain.ValidationResult..ctor(IEnumerable`1 messages)
   at OSPSuite.Core.Domain.ValidationResult..ctor(ValidationResult[] validationResults)
   at OSPSuite.Core.Domain.Services.ModelConstructor.validateModel(ModelConfiguration modelConfiguration)
   at OSPSuite.Core.Domain.Services.ModelConstructor.CreateModelFrom(SimulationConfiguration simulationConfiguration, String modelName)
   at MoBi.Core.Domain.Services.SimulationFactory.createModel(SimulationConfiguration simulationConfiguration, String name)
   at MoBi.Core.Domain.Services.SimulationFactory.<>c__DisplayClass14_0.<CreateModelAndValidate>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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant