function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFConsultant 1SFConsultant 1 

Deploy change set with Apex Test Failure

I am trying to deploy my first change set.  When performing a Validation of the Inbound Change Set, I receive an Apex test error.  I don't know how to read / correct this error.  I would appreciate any assistance.  I have attached screenshots of the Apex Class and the Apex Test error message.

Thanks in advance,
Christina

User-added image

User-added image
Don Schueler 12Don Schueler 12

without seeing test code we can't exactly help...but you have an assert that fails..... so look at see what that assert is and validate that it is correct and you have correct result depicted...

e.g.

integer i = 0;
integer j = 1;
 
//this would throw an error  and cause your test to fail 
System.assertEquals(i,j);
//this would pass
System.assertNotEquals(1,i);
etc...

SFConsultant 1SFConsultant 1
Don,
Thank you for the prompt response.  I do not do coding.  I do know that the Milestone PM is a native app.  Is there another means of getting this resolved?  Can I bypass the error and perform the change set?  Do I need to file a case directly with SalesForce?  Any other suggestions?
Christina
v varaprasadv varaprasad
Hi Christiana,

In class Milestone1_gettingstaredcontroller.testgettingshare project method at line no 325 you are using system.assert statement.
Here expected value is not coming.

Before deploying your component run once test class and check codecob=verage is more than 75% or not and test class is a success or not.

Hope this helps you.

Thanks
varaprasad

 
Don Schueler 12Don Schueler 12
so its not YOUR test class failing then...
Don Schueler 12Don Schueler 12
If its an appexchange package, install it in the Prod org and reconfig there.
Tad Aalgaard 3Tad Aalgaard 3
What Don says is correct.  It looks like you're trying to install an app you installed from AppExchange by deploying it instead of installing it.  You need to install it using AppExchange again but install it on the prod organization.
SFConsultant 1SFConsultant 1
I am trying to deploy a change set from one sandbox to another as this is my first depolyment.  MilestonePM is installed in both SandBox instances as well as Production environment.  There appear to be associated customizations and therefore, I cannot uninstall and reinstall the App.  Is there additional information that I can provide to you so that you can assist me with this?  I apologize.  I am a new SalesForce Admin coming into a SalesForce setup that was not done to the company's expectations by the developer.
Eda BaileyEda Bailey
Thank you for thinking of me.

https://www.mybalancenow.work/
cjiso hdxisocjiso hdxiso
I need help using the same script for my new profile. You can see my page detail (https://protigwelder.com/best-aluminum-tig-welder-for-the-money/).
Melissa WrightMelissa Wright
While you may feel pressured by your leadership or by users to deploy changes whenever they need them, that approach can actually be counterproductive. When you make changes outside of a regular schedule, you’re more likely to (https://www.10plays.com/) make mistakes or cause unintended errors downstream in your other processes or systems.

Following release management practices will prevent you from forgetting critical dependencies, failing to communicate potential changes to users, and rushing through the process. When you deploy change sets as part of regularly scheduled maintenance, you have a framework that allows you to think the process through and ensure you’re communicating with all stakeholders.
apk mosaapk mosa
I am trying to deploy a change set from one sandbox to another as this is my first depolyment.  MilestonePM is installed in both SandBox instances as well as Production environment.  There appear to be associated customizations and therefore, I cannot uninstall and reinstall the Apkmosa (https://apkmosa.com" target="_blank). Is there another means of getting this resolved?  Can I bypass the error and perform the change set? Any other suggestions?
craig welder 1craig welder 1
I need help building a Visualforce page that will display custom text from a custom field on the Account called "Alert" anytime a user lands on an Account (with an option to close), and I want to restrict the popup @ Buzztify (https://buzztify.com/) Celebrities Magazines (https://celebritiesmagazines.com/)