+ Start a Discussion
ShikibuShikibu 

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) 
boBNunnyboBNunny

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.