Dependent class is invalid and needs recompilation error

By | July 4, 2014

We had a trigger active and working fine for the past one year. This trigger would create a task and opportunity; as well as send an email based on certain business rules when the customer gave any kind of feedback online at the Salesforce portal.

Some days back, we started getting the following error:Dependant class invalid errorThis was quite a shock for all of us, as this was thoroughly tested and had proven to be working exactly in sync with the logic for the past one year. On investigating the cause, we found that one of the classes being “referred to” in this whole process was modified.

This is how we resolved this issue:Apex compile all classes

Navigate to Setup ->Build -> Develop-> Apex Classes. Click the link “Compile All Classes”. This will compile all the classes in your organization. After recompilation, the trigger started working as usual again.

Happy Coding!

About Us
Greytrix as a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners across the globe. We offers Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that requires apex code incorporation into the Salesforce platform.

Greytrix has some unique solutions for Cloud CRM such as Salesforce integration with Sage Enterprise Management (Sage X3), Sage Intacct, Sage 100 and Sage 300 (Sage Accpac). We also offer best-in-class Cloud CRM Salesforce customization and development services along with services such as Salesforce Data Migration, Integrated App development, Custom App development and Technical Support to business partners and end users.

Greytrix GUMU™ integration for Sage ERP – Salesforce is a 5-star app listed on Salesforce AppExchange.

For more information, please contact us at salesforce@greytrix.com. We will be glad to assist you.

Related Posts