Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Application Group Variables - Key Already Added Error

    Scheduled Pinned Locked Moved Support
    buildmaster
    2 Posts 1 Posters 2 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I was trying to use an ApplicationGroup variable to hold some information about our TFS project root. I have several applications groups and they loosely match to our TFS projects so it would be a nice shortcut to be able to include the information here and reference it. Everything was great until I started setting the value for each of my groups. At that point, all the builds started to break including ones that were not even using the variable. The error is listed below. Question: Is this something that should work?

      <i>ERROR: Unhandled exception: System.ArgumentException: An item with the same key has already been added.
      at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer`1 comparer)
      at Inedo.BuildMaster.Windows.ServiceApplication.PlanExecuter.ActionGroupExecuter.ExecuteAction(ActionGroupActions_Extended actionInfo, ActionGroupContext context, Servers sourceServer, Servers targetServer)
      at Inedo.BuildMaster.Windows.ServiceApplication.PlanExecuter.ActionGroupExecuter.Execute()</I>

      Product: BuildMaster
      Version: 4.4.4

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Yes, this is a bug. We've been able to reproduce and fix it. The fix will be included in the next BuildMaster release, but if you would like a SQL patch to run sooner, you can email support at inedo.com and we'll send it to you.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation