-
Notifications
You must be signed in to change notification settings - Fork 175
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
An item with the same key has already been added. #108
Comments
+1 Does anyone have any idea what might be causing this? |
I actually stopped usinf this utility. If you loop and add is still good. Didnt see any performance issues. Just do your own. |
+1 getting the followin stack trace when apparently trying to insert an empty collection:
I couldn't reproduce the issue using integration tests. My current versions are: EntityFramework = 6.1.3 |
Job Message: Main Message: An item with the same key has already been added.
Main Message Stack Trace: at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary
2.Insert(TKey key, TValue value, Boolean add) at EntityFramework.Utilities.EfMappingFactory.GetMappingsForContext(DbContext context) at EntityFramework.Utilities.EFBatchOperation
2.InsertAll[TEntity](IEnumerable
1 items, DbConnection connection, Nullable
1 batchSize)This error occurs intermittently, though no duplicate key is being passed to the InsertAll().
The text was updated successfully, but these errors were encountered: