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

System.ArgumentException: An item with the same key has already been added. #181

Open
megahirt opened this issue Jan 20, 2022 · 2 comments
Assignees
Labels
S/R Exception S/R Exceptions under investigation

Comments

@megahirt
Copy link
Contributor

jaijairai-flex2

System.ArgumentException: An item with the same key has already been added. Key: my-MM
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x0015a] in <c5a54dbe91cb4981b725403e1a171987>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <c5a54dbe91cb4981b725403e1a171987>:0
  at LfMerge.Core.DataConverters.ConvertLcmToMongoLexicon.LcmWsToLfWs () [0x0009f] in /build/lfmerge-7000072-9dfRZq/lfmerge-7000072-2.0.90.52/src/LfMerge.Core/DataConverters/ConvertLcmToMongoLexicon.cs:617
  at LfMerge.Core.DataConverters.ConvertLcmToMongoLexicon..ctor (LfMerge.Core.ILfProject lfProject, LfMerge.Core.Logging.ILogger logger, LfMerge.Core.MongoConnector.IMongoConnection connection, SIL.Progress.IProgress progress, LfMerge.Core.MongoConnector.MongoProjectRecordFactory projectRecordFactory) [0x00079] in /build/lfmerge-7000072-9dfRZq/lfmerge-7000072-2.0.90.52/src/LfMerge.Core/DataConverters/ConvertLcmToMongoLexicon.cs:65
  at LfMerge.Core.Actions.TransferLcmToMongoAction.DoRun (LfMerge.Core.ILfProject project) [0x00104] in /build/lfmerge-7000072-9dfRZq/lfmerge-7000072-2.0.90.52/src/LfMerge.Core/Actions/TransferLcmToMongoAction.cs:64
  at LfMerge.Core.Actions.Action.Run (LfMerge.Core.ILfProject project) [0x0010d] in /build/lfmerge-7000072-9dfRZq/lfmerge-7000072-2.0.90.52/src/LfMerge.Core/Actions/Action.cs:142
  at LfMerge.Core.Actions.SynchronizeAction.DoRun (LfMerge.Core.ILfProject project) [0x003d4] in /build/lfmerge-7000072-9dfRZq/lfmerge-7000072-2.0.90.52/src/LfMerge.Core/Actions/SynchronizeAction.cs:196
  at LfMerge.Core.Actions.Action.Run (LfMerge.Core.ILfProject project) [0x0010d] in /build/lfmerge-7000072-9dfRZq/lfmerge-7000072-2.0.90.52/src/LfMerge.Core/Actions/Action.cs:142
  at LfMerge.Program.RunAction (System.String projectCode, LfMerge.Core.Actions.ActionNames currentAction) [0x000ed] in /build/lfmerge-7000072-9dfRZq/lfmerge-7000072-2.0.90.52/src/LfMerge/Program.cs:128 
@megahirt megahirt added the S/R Exception S/R Exceptions under investigation label Jan 20, 2022
@josephmyers
Copy link
Collaborator

This should be either 614 or 616 (in master), depending on whether or not FW8 was being used. So my guess is the ServiceLocator.LanguageProject.AllWritingSystems has two items with either duplicate ID's or LanguageTag's.

@megahirt
Copy link
Contributor Author

Since this issue occurred a long time ago, we need to re-verify that this is still a problem.

@josephmyers TODO:

  • verify that jaijairai-flex2 is still on HOLD
  • if still on HOLD, take it off HOLD and re-do the S/R.
  • If the error persists, then debug it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S/R Exception S/R Exceptions under investigation
Projects
Development

No branches or pull requests

2 participants