The Welkin Suite Forum

Deploy to organization - An item with the same key has already been added



Deploy to organization - An item with the same key has already been added

  • Please log in to reply

#1
windows version welkinsuite

toby.compton

    Posted 24 Mar 2017

    Hi,


    I am trying to use the new deploy to organization feature in R12, the first time I selected my files to deploy and chose the 'run specific tests' option. I got as far as the screen to select which tests to run however no tests were listed to run, not even the test that was part of my selected files to depoy.

    So I cancelled the deployment and tried again, now I get the following error when selected my files to deploy "An item with the same key has already been added".

    Any ideas?

    Thanks



    6 replies to this topic

    #2

    kate.dulko

      Posted 24 Mar 2017

      Hi Toby,


      Thank you for sharing the issue that you are faced with.


      I kindly ask you to send us a bug report directly from The Welkin Suite IDE. This option is available for you in the menu Help -> Report a Bug. Please enable the checkbox 'Attach Log Files', so that we can analyze these files. They will help us to understand why the list of tests was empty and further behavior of the Deployment wizard.


      Also, can you please tell me the average number of tests which should be present in the list in your case? Do you have test on your remote Organization?

      Is the issue reproduced after you restart The Welkin Suite IDE?


      Thank you,

      Kate



      Kate Dulko
      Customer Relations

      The Welkin Suite

      twitter: @KateDulko
      skype id: d_katerina
      e-mail: kate.dulko@welkinsuite.com

       

        


      #3

      toby.compton

        Posted 27 Mar 2017

        OK thanks, bug report submitted.


        Yes, the issue is reproduced after restarting TWS.



        #4

        kate.dulko

          Posted 27 Mar 2017

          Hi Toby,


          Thank you for your response and for the bug report with the attached log files.


          The reason for the issue you are faced with is test classes on your remote Organization which have the same names but different namespaces.

          First time when you were deploying, the error didn't appear because of time out of loading the list of tests. At the second and all further times, the list of tests cannot be loaded due this reason.

          I've added the related ticket to our development backlog, and our developers will work on handling such cases.


          Currently, can you please check which test class files have the same name and, if this is acceptable for you, rename one of them to check if the deployment process would go without errors in this case?


          Thank you,

          Kate


          Kate Dulko
          Customer Relations

          The Welkin Suite

          twitter: @KateDulko
          skype id: d_katerina
          e-mail: kate.dulko@welkinsuite.com

           

            


          #5

          toby.compton

            Posted 27 Mar 2017

            Hi Kate,

            It appears that it wasn't due to the the classes being deployed, we have existing classes/test classes in our org that have the same name but in a different namespace. The issue for us is we can't rename these classes as they are both in managed packages!

            Thanks



            #6

            kate.dulko

              Posted 27 Mar 2017

              Hi Toby,


              Thank you for your response.

              Our developers will fix the reason for the issue, and this will be included to the nearest version of The Welkin Suite Spire.


              I will keep you updated when the issue will be solved for you.


              Regards,

              Kate




              Kate Dulko
              Customer Relations

              The Welkin Suite

              twitter: @KateDulko
              skype id: d_katerina
              e-mail: kate.dulko@welkinsuite.com

               

                


              #7

              kate.dulko

                Posted 20 Apr 2017

                Hi Toby,

                 

                I want to inform you that we have released the updated version of The Welkin Suite IDE - Spire R13.

                This version contains the fix for the issue when the local tests were absent in the list of tests which were available in a frame of the 'Run specific tests' option during the deploy to another Organization if tests from a remote Org were not loaded.

                Our developers continue to investigate how we can handle the time-out for loading tests from a remote Organization and I will let you know when this issue will be solved also.

                Also, we have fixed the issue when the error appeared due to the same name of classes from different namespaces.

                 

                Regards,

                Kate


                Kate Dulko
                Customer Relations

                The Welkin Suite

                twitter: @KateDulko
                skype id: d_katerina
                e-mail: kate.dulko@welkinsuite.com

                 

                  





                Boost Your Productivity. Get Started Today

                Try Free Trial