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
Saravana Muthu 8Saravana Muthu 8 

DeploymentError

Hi All,

I am having issue while push the changes from sandbox to production.

I got the below error when using change set
User-added image

I got the below error when using eclipse
User-added image

I have checked the cusom labels no custom labels were used in the class.

Can anyone please help on this to resolve the issue?

Thanks,
Best Answer chosen by Saravana Muthu 8
Saravana Muthu 8Saravana Muthu 8
Hi Suraj,

Thank you for your quick response.

I tried your suggestion and got the same error.

I can able to solve the issue by following method.

i have to insert test custom setting in the test class when i deploy the test class to production using eclipse and then modify the apex classess and it worked.


Thanks,
Saravana

All Answers

Suraj TripathiSuraj Tripathi

Hi Saravana,

Looking at your first provided screenshot, I think somewhere in the class there are Labels Missing.
I would suggest you if you are using eclipse, right Click on the Project  - > Go to Force.com --> Work Online and then save. 

Because you have set it to work offline, so any changes made in eclipse would not be getting saved to the server . 

Hope it Helps you. Mark this answer Solved if it resolves your query.

Regards ,
Suraj



 

Saravana Muthu 8Saravana Muthu 8
Hi Suraj,

Thank you for your quick response.

I tried your suggestion and got the same error.

I can able to solve the issue by following method.

i have to insert test custom setting in the test class when i deploy the test class to production using eclipse and then modify the apex classess and it worked.


Thanks,
Saravana
This was selected as the best answer