delegateas / XrmMockup

Engine which simulates your exact Dynamics 365/CRM instance locally including all of it's logic!
Other
71 stars 28 forks source link

Metadata Generator Exception: An item with the same key has already been added #193

Closed maerger closed 3 years ago

maerger commented 3 years ago

Describe the bug I tried to recreate my metadata. No change of version and/or configuration. I get the following error message:

Unhandled Exception: System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at DG.Tools.XrmMockup.Metadata.DataHelper.GetSecurityRoles(Guid rootBUId) at DG.Tools.XrmMockup.Metadata.Program.GenerateMetadata() at DG.Tools.XrmMockup.Metadata.Program.Main(String[] args)

To Reproduce Think this is related to my environment

Expected behavior Creation of updated metadata

Environment

Additional contextAdd any other context about the problem here. Error messages og solution files. My config: <?xml version="1.0" encoding="utf-8"?>

maerger commented 3 years ago

Update to 1.8.1 solved the issue - sorry!