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

Apex Classes "IsValid" flag gets unset

In my production instance, when I updated a utility class that a number of other classes depend on, I saw that these other classes were then marked "IsValid" = unchecked, and they had no wsdl link, in Setup/Develop/Classes.


After performing "Run All Tests", they were marked valid. 


What is going on here?



Best Answer chosen by Admin (Salesforce Developers) 

This happens whenever you have dependent metadata recompiled and the code is marked as Not Valid because it wants you to recompile to ensure everything still meshes.  For example, you might change a signature of a method and now the dependent class won't work when accessed any longer.  By running the tests, that's one way to get all of the classes to recompile.