The Welkin Suite Forum

[Fixed] Object not set to an instance of an object on Pull from salesforce



Object not set to an instance of an object on Pull from salesforce

  • Please log in to reply

#1

tomic.84

    Posted 14 Oct 2016

    I am on the version 1.0.23.4 and today I am getting object not set to an instance of an object when I try to pull from salesforce. The error is present no matter if I do that on the project root or on the classes folder. It displays the popup where I can check the folders but after clicking the next button it displays the above error message. Any idea what can be wrong?



    9 replies to this topic

    #2

    kate.dulko

      Posted 17 Oct 2016

      Hi Tomic,



      Thank you for you post.

      The issue you are faced with is known to us. This will be solved in the next version of TWS that will be available for you this week.

      This is related to the Aura Definition Bundle metadata.

      Currently, you can create a new project without Lightning metadata files to continue your working process till the fix of the issue will be released.



      Regards,

      Kate

      Kate Dulko
      Customer Relations

      The Welkin Suite

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

       

        


      #3

      tomic.84

        Posted 17 Oct 2016

        Hi Kate,

        Thank you for the answer. However, I don't have any lightning metadata in my project and I was able to create a new Project. The Problem is while trying to Pull From Salesforce. Currently I can not proceed working with this Project in TWS and need to go to Force.com IDE, again :(


        #4

        kate.dulko

          Posted 17 Oct 2016

          Hi again Tomic,



          Thank you for your response.

          I kindly ask you to reproduce the issue related to the failed pull again and right after this please send us a bug report directly from TWS. You ca find this option in the Main Menu -> Help -> Report a Bug. Please mark the checkbox 'Attach Log file'. This way we will receive your Activity Log file that can help us to understand the reason for your issue.



          Thank you,

          Kate

          Kate Dulko
          Customer Relations

          The Welkin Suite

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

           

            


          #5

          tomic.84

            Posted 17 Oct 2016

            Ok, I did it. Hope it will help you.


            #6

            kate.dulko

              Posted 17 Oct 2016

              Thank you for your bug report with the attached log file. We have received it.



              The reason for the failed pull in your case is related to the queries for the Aura Definition Bundle metadata from TWS to your Salesforce Org.

              We are going to release the updated version of the IDE that includes the fix for this issue the nearest days.



              Thank you for your collaboration.

              Regards,

              Kate

              Kate Dulko
              Customer Relations

              The Welkin Suite

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

               

                


              #7

              gtasker

                Posted 18 Oct 2016

                I have the same problem with Spire R1. My issue is that my original pull from Salesforce I chose to use OAuth2 to do the pull, rather than storing hte credentials in the solution. The next day, after the OAuth token would have expired, I opened the solution, requested a pull of all the latest from Saleforce, and was not prompted to login to get a new OAuth token. Because I had no OAuth token, the Pull failed trying to query the remote files (specifically the Lightning items which I do not have). Log entries included below:



                309



                Error

                SalesforceService

                Unexpected exception was encountered during execution: System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request) at WelkinSuite.Common.AsyncCachedCallWraper`1.<CachedCall>d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at WelkinSuite.Salesforce.Composite.Implementation.Services.SalesforceService.ReLoginWithOAuth()





                310



                Error

                TWS - Pull Wizard

                Unexpected exception was encountered during execution: System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object. at WelkinSuite.Salesforce.Composite.Implementation.Services.SalesforceService.QueryLightningItems() at WelkinSuite.ProjectItemsServices.Implementation.Executors.QueryItemsByType.LightningQueryItemsExecutor.GetByType(MetadataType type) at WelkinSuite.ProjectItemsServices.Implementation.Services.ProjectItemService.<>c__DisplayClass10.<QueryRemoteItems>b__e() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at WelkinSuite.ProjectItemsServices.Implementation.Services.ProjectItemService.QueryRemoteItems(IEnumerable`1 types) at WelkinSuite.Presentation.Wizards.Pull.Models.PullWizardDialogModel.QueryRemoteFiles() at WelkinSuite.Presentation.Wizards.Pull.Models.PullWizardDialogModel.DownloadFileSync() ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object. at WelkinSuite.Salesforce.Composite.Implementation.Services.SalesforceService.QueryLightningItems() at WelkinSuite.ProjectItemsServices.Implementation.Executors.QueryItemsByType.LightningQueryItemsExecutor.GetByType(MetadataType type) at WelkinSuite.ProjectItemsServices.Implementation.Services.ProjectItemService.<>c__DisplayClass10.<QueryRemoteItems>b__e() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute()<---



                #8

                kate.dulko

                  Posted 18 Oct 2016

                  Greetings,



                  Thank you for your post.

                  Tonight we are going to release the Spire R2 version of The Welkin Suite IDE. This version will include the fix for the failed pull that you have described.

                  This issue isn't related to using the OAuth authentication. The request to refresh your OAuth token is the another issue. The fix for this will be released in the Spire R2 version of the IDE also.

                  I kindly ask you to let us know if these issues are reproduced for your after TWS updating to the new version.



                  Regards,

                  Kate

                  Kate Dulko
                  Customer Relations

                  The Welkin Suite

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

                   

                    


                  #9

                  tomic.84

                    Posted 19 Oct 2016

                    I can confirm that issue is solved. As far as I am concerned, this can be marked as solved/closed.



                    Thank you for your effort!


                    #10

                    kate.dulko

                      Posted 19 Oct 2016

                      Hi Tomic,



                      Thank you for your feedback.

                      Please contact us if you are faced with any other issues.



                      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