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 

Error with License Manager Application 2.0.3

Just installed LMA in a new org and got our first lead and this error:


Alert: Salesforce experienced the following problem creating the lead below:


Reason: Apex trigger leadEmailCheck caused an unexpected exception, contact your administrator: leadEmailCheck: compiling trigger body

caused by: line 4, column 24: Dependent class is invalid and needs recompilation:
duplicatelogic: line 1, column 1: unexpected token: package
   Lead Capture Page: Not available.


Anyone have any ideas?



You are seeing this error as you are using "Package" instead of "class" in the duplicatelogic class. "Package" is a deprecated keyword. In order to resolve this issue, you should rewrite the duplicatelogic.apex using the class syntax.


This issue has nothing to do with LMA.