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
Marketing Marketing 27Marketing Marketing 27 

line -1, column -1: Dependent class is invalid and needs recompilation Error Holding Up Change Set

I am Deploying a simple custom object into my production org. When I select "Run Local Tests" I get a bunch of errors for various apex classes that say:

line -1, column -1: Dependent class is invalid and needs recompilation: Class ConfirmProductConversionController : Method does not exist or incorrect signature: void getAccount() from the type UnitTestHelper
Stack Trace: null

This Class UnitTestHelper was recently updated and it is used by a lot of the classes mentioned in these errors. But there are a couple test classes that don't even utilize UnitTestHelper, but they are also getting this error.

There are 14 of these errors all related to To different test classes. How do I fix this, especially with the erros coming from classes that don't even use this method?? Please help.
Sai PraveenSai Praveen (Salesforce Developers) 
Hi,

You can recompile all the classes in the production org fot the above error. If you are deploying only the custom object I dont see any reason for test class run. 

But as you are getting the error as said above compile all the classes once. 

Please find the below article for the same.

https://help.salesforce.com/s/articleView?id=000340653&type=1 (https://help.salesforce.com/s/articleView?id=000340653&type=1)

If this solution helps, Please mark it as best answer.

Thanks,