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
Patrick HanahanPatrick Hanahan 

Apex Trigger error

Hi I am having trouble with adding a contact into salesforce. the Below error is what I have been getting. Also, Trigger does not show up under contacts under customize.

Review all error messages below to correct your data.
Apex trigger sync.contactTrigger caused an unexpected exception, contact your administrator: sync.contactTrigger: execution of AfterInsert caused by: line 8, column 9: trigger body is invalid and failed recompilation: Dependent class is invalid and needs recompilation: sync.asyncapex: line 24, column 28: sObject type 'Lead' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.