The Welkin Suite Forum

INVALID_CROSS_REFERENCE_KEY with Spring 21



INVALID_CROSS_REFERENCE_KEY with Spring 21

  • Please log in to reply

#1
windows version welkinsuite

vkessler

    Posted 19 Jan 2021 and edited 4 days ago

    Is anyone else seeing the error "INVALID_CROSS_REFERENCE_KEY: invalid cross reference id" every time they deploy? I'm having to copy&paste my code to an editor to ensure I don't lose anything and then do a FORCE pull before it lets me do another deploy. It seems to actually push the code (as resolve shows no differences).


    Another SF development tool is reporting the same thing:

    https://bitbucket.org/RoseSilverSoftware/illuminatedcloud/issues/1801?fbclid=IwAR1mq9q3kLlTylIwnMsCAtnGvSGHUUKODsE2gQxTndqyFAyeFrtU1rAdSBM


    • 1

    25 replies to this topic

    #2

    nunocardoso

      Posted 25 Jan 2021

      Same issue here... we need a fix for this



      #3

      george

        Posted 25 Jan 2021 and edited 25 Jan 2021

        Yes, we are getting this error consistently now.   I have to re-pull the file from the org to clear it and then do it again the next time I deploy.  This is really really slowing down our development process.



        #4

        vkessler

          Posted 03 Feb 2021

          Welkin??? Do you look at this thread?


          I just created a brand new project and tried OAuth authentication but I still get this error when pushing changes. Welkin Suite is UNUSABLE for me.


          Are we the only three people seeing this?????



          #5

          sureshbabu_murugan

            Posted 10 Feb 2021

            Same error.

            Is there any update on this issue?



            #6

            james.billings

              Posted 16 Feb 2021

              Also seeing this since our instance was updated this weekend



              #7

              vlgubanovich

                Posted 16 Feb 2021

                Hi Everyone!
                Thank you for reporting the issue. We're looking in details at what we can do asap and I'll get back to you with an update within a couple of days.

                Best Regards,

                Vladimir


                Vladimir Gubanovich
                Head of Product
                 
                The Welkin Suite
                skype id: vladimir.gubanovich
                e-mail: vladimir.gubanovich@welkinsuite.com


                #8

                vlgubanovich

                  Posted 16 Feb 2021

                  Hi Everyone,


                  As a temporary workaround you can use the following approach:

                  When you deploy only Apex/Visualforce/Aura/LWC/Static Resources - The Welkin Suite will use the Tooling API which is affected by the issue. However, if you would include any other metadata type in the deployment, TWS will use the Metadata API and it should work properly. For example, you can update any page layout file and add just an empty line somewhere in the middle of the file - TWS will include it and everything should work fine.

                  Please let me know if this temporary workaround works for you.


                  Thank you,

                  Vladimir


                  Vladimir Gubanovich
                  Head of Product
                   
                  The Welkin Suite
                  skype id: vladimir.gubanovich
                  e-mail: vladimir.gubanovich@welkinsuite.com


                  #9

                  mdstevens4

                    Posted 16 Feb 2021

                    I do not have any page layouts in Welkin ... but making a small change to a field description on a Custom Object does NOT seem to work for me.



                    #10

                    lvadali

                      Posted 17 Feb 2021

                      I am having the same issue.



                      #11

                      vlgubanovich

                        Posted 19 Feb 2021

                        Hi Guys,
                        We've just released the update for this issue - it changes the IDE behavior to use the Metadata API for all deployments. Could you please update to R40 and let me know if this works for you?
                        Thank you,
                        Vladimir


                        Vladimir Gubanovich
                        Head of Product
                         
                        The Welkin Suite
                        skype id: vladimir.gubanovich
                        e-mail: vladimir.gubanovich@welkinsuite.com


                        #12

                        george

                          Posted 19 Feb 2021

                          Thank you Vladimir,

                          I am trying to do an update to get that change and my Welkin is just showing the update screen with 

                          Downloading the update...

                          0mb of 0mb

                          George



                          #13

                          james.billings

                            Posted 22 Feb 2021

                            My update is also stuck on 0mb of 0mb

                            The log shows this response:
                            2021/02/22 07:24:34.823 [ERROR] [1] Update retrieval failed for uri=https://builds.welkinsuite.com/TheWelkinSuite-Bloom-R40-1.34.3.4.msi, Exception=System.Net.WebException: The remote server returned an error: (404) Not Found.




                            #14

                            vkessler

                              Posted 22 Feb 2021

                              I also cannot download the update (0 of 0mb error). I downloaded the full installer just in case I could get it that way, but when I try to run it, I get the error attached:



                              Attached Files


                              #15

                              nunocardoso

                                Posted 22 Feb 2021

                                Hello,

                                Although I see the same issue of the downloader, lately I have been able to work without any issue related with the INVALID_CROSS_REFERENCE_KEY. 



                                #16

                                vlgubanovich

                                  Posted 22 Feb 2021

                                  Hi george, james.billings, vkessler,
                                  I apologize for the issue. Now it's ok.
                                  Thank you,

                                  Vladimir


                                  Vladimir Gubanovich
                                  Head of Product
                                   
                                  The Welkin Suite
                                  skype id: vladimir.gubanovich
                                  e-mail: vladimir.gubanovich@welkinsuite.com


                                  #17

                                  vkessler

                                    Posted 22 Feb 2021

                                    I got the update installed and I can upload without errors again. Goodbye SF Dev Console!


                                    Thanks



                                    #18

                                    vlgubanovich

                                      Posted 22 Feb 2021

                                      Great, vkessler! Thank you for letting us know!
                                      And please sorry that it took longer than needed :(
                                      Best regards,
                                      Vladimir


                                      Vladimir Gubanovich
                                      Head of Product
                                       
                                      The Welkin Suite
                                      skype id: vladimir.gubanovich
                                      e-mail: vladimir.gubanovich@welkinsuite.com


                                      #19

                                      george

                                        Posted 7 days ago and edited 7 days ago

                                        After upgrading I cannot deploy any changes.   I am always getting

                                        Deploying changed items...
                                        String reference not set to an instance of a String.
                                        Parameter name: s

                                        I get this same error no matter what file I open and no matter what changes I make.



                                        #20

                                        george

                                          Posted 5 days ago

                                          OK, so I got around my String reference errors by creating a whole new project which allowed me to at least deploy my changes   But now I will randomly get

                                          Deploy is finished with errors [08:17:27.111].

                                          Time Elapsed 00:02:23.363

                                          ========== Deploy: Project: my_project failed ==========

                                          But the error list is empty...

                                          This is just as bad as the Cross Reference error!  Help!




                                          #21

                                          vlgubanovich

                                            Posted 5 days ago

                                            Hi George,

                                            Could you please send a bugreport from the IDE so we'll check the log?

                                            Thank you,
                                            Vladimir


                                            Vladimir Gubanovich
                                            Head of Product
                                             
                                            The Welkin Suite
                                            skype id: vladimir.gubanovich
                                            e-mail: vladimir.gubanovich@welkinsuite.com


                                            #22

                                            george

                                              Posted 5 days ago

                                              vlgubanovich, on 25 Feb 2021 - 03:39 PM, said:

                                              Hi George,

                                              Could you please send a bugreport from the IDE so we'll check the log?

                                              Thank you,
                                              Vladimir

                                               Can do, Report a Bug sent with logs attached.

                                              If I "force deploy" a bunch of times it will eventually go through...but it really slows down the development process. :)



                                              #23

                                              james.billings

                                                Posted 4 days ago

                                                Just to report that the original problem is also fixed for me, and I don't see the new issue Vladimir mentions, so all good at this end for now



                                                #24

                                                nunocardoso

                                                  Posted 4 days ago

                                                  Now all good from this side.



                                                  #25

                                                  vlgubanovich

                                                    Posted 4 days ago

                                                    Hi George!
                                                    According to the log file it appears that there's some mismatch between your project file and what's in the file system actually. Could you please try recreating the project?
                                                    Thank you,
                                                    Vladimir


                                                    Vladimir Gubanovich
                                                    Head of Product
                                                     
                                                    The Welkin Suite
                                                    skype id: vladimir.gubanovich
                                                    e-mail: vladimir.gubanovich@welkinsuite.com


                                                    #26

                                                    george

                                                      Posted 4 days ago

                                                      Yup, I had already done that...but then my git repository was in a different folder etc...  I figured out a way to move the new project into the old directory so now I can work again but what a pain. :)







                                                      Boost Your Productivity. Get Started Today

                                                      Try Free Trial