Skip to content

Error when adding Protein Expression Parameters to Parameter Values Building Block #2352

@Yuri05

Description

@Yuri05

xyz.zip

Image
Application:
MoBi® 12.3.0

An item with the key 'Organism|ArterialBlood|Plasma|CYP3A4|Initial concentration' 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 MoBi.Core.Domain.Extensions.BuildingBlockExtensions.ToCache[T](IEnumerable`1 pathAndValueEntities) in C:\SW-Dev\MoBi\branches\11.0\src\MoBi.Core\Domain\Extensions\BuildingBlockExtensions.cs:line 17
   at MoBi.Presentation.Tasks.Interaction.InteractionTasksForExtendablePathAndValueEntity`2.Extend(IReadOnlyList`1 pathAndValueEntities, ILookupBuildingBlock`1 buildingBlockToExtend, Boolean retainConflictingEntities) in C:\SW-Dev\MoBi\branches\11.0\src\MoBi.Presentation\Tasks\Interaction\InteractionTasksForExtendablePathAndValueEntity.cs:line 191
   at MoBi.Presentation.Tasks.Interaction.InteractionTasksForExtendablePathAndValueEntity`2.ExtendBuildingBlockWith(TBuildingBlock buildingBlock, IReadOnlyList`1 newEntities) in C:\SW-Dev\MoBi\branches\11.0\src\MoBi.Presentation\Tasks\Interaction\InteractionTasksForExtendablePathAndValueEntity.cs:line 355
   at MoBi.Presentation.Tasks.Interaction.ParameterValuesTask.AddStartValueExpression(ParameterValuesBuildingBlock buildingBlock) in C:\SW-Dev\MoBi\branches\11.0\src\MoBi.Presentation\Tasks\Interaction\ParameterValuesTask.cs:line 114
   at MoBi.Presentation.UICommand.AddProteinExpressionUICommand.PerformExecute() in C:\SW-Dev\MoBi\branches\11.0\src\MoBi.Presentation\UICommand\AddProteinExpressionUICommand.cs:line 17
   at OSPSuite.Presentation.UICommands.ObjectUICommand`1.Execute()
   at OSPSuite.Presentation.UICommands.UICommandExtensions.ExecuteWithinExceptionHandler(IUICommand uiCommand, IEventPublisher eventPublisher, IChangePropagator changePropagator)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions