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 trying to rollback #1459

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

Error when trying to rollback #1459

PavelBal opened this issue Aug 2, 2024 · 0 comments

Comments

@PavelBal
Copy link
Member

PavelBal commented Aug 2, 2024

bug-rollback.zip

In the "History", try to rollback to state 30:

image

Application:
MoBi® 12.0.296

An item with the key 'Organism|Liver|Periportal|Plasma|CYP3A4|Relative expression' 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.Core.Domain.Builder.PathAndValueEntityBuildingBlock`1.Add(T pathAndValueEntity)
   at MoBi.Core.Commands.AddPathAndValueEntityToBuildingBlockCommand`1.ExecuteWith(IMoBiContext context)
   at OSPSuite.Core.Commands.OSPSuiteCommand`1.Execute(TContext context)
   at OSPSuite.Core.Commands.Core.RollBackCommand`1.<>c__DisplayClass3_0.<Execute>b__0(IReversibleCommand`1 command)
   at OSPSuite.Utility.Extensions.EnumerableExtensions.Each[T](IEnumerable`1 list, Action`1 action)
   at OSPSuite.Core.Commands.Core.RollBackCommand`1.Execute(TExecutionContext context)
   at OSPSuite.Core.Commands.Core.HistoryManager`1.RollBackTo(Int32 state)

(before, there was another error)

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