The Welkin Suite Forum

Cannot Pull Data: An item with the same key has already been added



Cannot Pull Data: An item with the same key has already been added

  • Please log in to reply

#1
mac version welkinsuite

shanejayhayes

    Posted 22 Mar 2017

    For the last few days I have been having issues trying to pull data down from Salesforce.  Regardless of what solution I have open I keep getting "One or more errors occured: An item with the same key has already been added".

    This obviously has brought everything to a dead stop.  I made sure there were no stuck or hung up processes in the dev console so I am not sure why this keeps happening.  Has anyone else experienced this?


    Attached Files


    14 replies to this topic

    #2

    kate.dulko

      Posted 22 Mar 2017

      Greetings


      Thank you for your post.

      The reason for the failed pull from Salesforce in your case is creating duplicated files in your TWS project.

      May I please clarify with you what version of TWS you are using? 

      Also, I kindly ask you to send us a bug report directly from the IDE. You can find this option in the menu Help -> Report a Big. This way we will receive your TWS log files. These files can help us to find a reason for this and solve the issue, or at least find a workaround so that you could continue your working process while we are working on the issue.


      Thank you,

      Kate



      Kate Dulko
      Customer Relations

      The Welkin Suite

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

       

        


      #3

      shanejayhayes

        Posted 22 Mar 2017

        Nova R2

        And I have sent the log.



        #4

        kate.dulko

          Posted 22 Mar 2017

          Thank you for the bug report with the attached log files.

           

          The creation of duplicated files in your case is related to Dashboards, Reports, Email Templates, or other folder metadata. This can be caused by existing of files of the same or different metadata types which have the same name, and they are located in one folder. If you can check this on your Organization, we will appreciate your help greatly.

          While our developers are working on this issue, you can disable the 'Subscribe' option in the 'Project metadata components' wizard for Dashboards, Report, and Email template metadata types and please pull after this without updating these files.

           

          Please let me know if this helps to solve the failed pull for you.

          I will keep you updated know when we will have any results on our investigation or solving this issue.

           

          Thank you,

          Kate

           


          Kate Dulko
          Customer Relations

          The Welkin Suite

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

           

            


          #5

          shanejayhayes

            Posted 23 Mar 2017

            Okay so it appears this was caused by the changes recently that pull declarative data down now.  Since I was still auto pulling down with Ant scripts it was creating duplicates.  I had to scrap and rebuild each solution.



            #6

            kate.dulko

              Posted 23 Mar 2017

              Hi.


              Thank you for your response with the update.

              Also, may I please ask you to check if there are files with the same name in one folder on your Salesforce Organization? This applies to the same metadata which I've mentioned. Looks like the duplicated files were not created locally, however, they were detected during loading them from the server.

              This information will help us to understand how we can handle the case you were faced with.


              Thank you,

              Kate




              Kate Dulko
              Customer Relations

              The Welkin Suite

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

               

                


              #7

              shanejayhayes

                Posted 28 Mar 2017

                Yeah this is definitely broken since the newest patch.  I completely deleted my solutions, rebuilt them all, they worked for a short time.  I removed all ANT scripts, so the metadata is all straight from Welkin.  Now it's broke again with same error.  I have to again wipe everything out and rebuild entire solution every time. Surely that is not the intended operation.  Any ETA on a fix for this?



                #8

                kate.dulko

                  Posted 29 Mar 2017

                  Hi,


                  Thank you for your update.

                  According to the log file which you sent to us, the reason for the issue is the same as previously. This means that your Ant tasks are not related to the issue, and this is caused by files on your Salesforce Organization.


                  I kindly ask you to open your Org on Salesforce and please check which files have the same names and are located in one folder. You can check this for Dashboards, Reports, and Email Templates. However, I want to draw your attention that the files with a duplicated name belong to the same metadata type.

                  TWS detects these files on the first stage of pulling when Salesforce returns the list of available files. The pull process itself doesn't start because of this.

                  Exactly this information will help us to understand how we can solve the issue and, as a result, we will be able to tell you when we could do this.


                  The issue appears on the Nova R2 version of The Welkin Suite because we implemented the support for dashboards, Reports, and Email Templates in this version.


                  We will appreciate your help greatly.

                  Thank you,
                  Kate



                  Kate Dulko
                  Customer Relations

                  The Welkin Suite

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

                   

                    


                  #9

                  shanejayhayes

                    Posted 29 Mar 2017

                    We do not have ANY data with duplicate names or API names in the reports, dashboards or email template folders.  Nothing at all.  I have even completed removed them from the metadata downloaded and the same error persists. 



                    #10

                    shanejayhayes

                      Posted 29 Mar 2017

                      Even when unsubscribed from those items and the past meta data deleted the error is still there.  Have to rebuild the solution and re-init the git in the folder and reinstall ant assets einto directory EVERY single time I want to use a solution/instance.



                      #11

                      kate.dulko

                        Posted 29 Mar 2017

                        Hi Shane,


                        Thank you for your response.

                        Currently, I kindly ask you to create a new TWS project without these metadata types and check if the issue would be reproduced on it.


                        Please let us know about the results. At the same time, we will be working on reproducing the issue.


                        Thank you,

                        Kate



                        Kate Dulko
                        Customer Relations

                        The Welkin Suite

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

                         

                          


                        #12

                        shanejayhayes

                          Posted 29 Mar 2017

                          I will in a moment, waiting for previous operation to complete.




                          #13

                          shanejayhayes

                            Posted 29 Mar 2017

                            It seems fine without those data types.  But I won't know until there are some changes and stuff to sync.



                            #14

                            kate.dulko

                              Posted 29 Mar 2017

                              Thank you for your quick response.

                              You can keep us updated if the issue would be reproduced after changes or stuff sync.


                              We will continue t investigate the reason for the issue.


                              Regards,

                              Kate


                              Kate Dulko
                              Customer Relations

                              The Welkin Suite

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

                               

                                


                              #15

                              kate.dulko

                                Posted 30 Mar 2017

                                Hi Shane,


                                May I please clarify with you one more possible reason for the issue?

                                Is it possible that files with the same metadata type and with the same name can be related to different namespaces on your Salesforce Organization? 


                                Thank you,

                                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