/
System.NoAccessException: Script-thrown exception

System.NoAccessException: Script-thrown exception

The following errors were encountered:

  1. When loading an existing Mapping, an error message saying ‘Failed to load field mappings: Script-thrown exception’ was displayed along with the ‘Select Object’ dropdown not being populated.

    image-20250223-194227.png

     

  2. When trying to create a new Mapping, the ‘Select Object’ dropdown was not being populated and some of other form elements are not rendered.

image-20250223-202227.png

Logging in through the LMA showed that there was a System.NoAccess exception on the Send2CRMAnalyticsFactory Apex Class even though all permission sets were assigned as expected.

When checking the Installed Packages page in Setup, it was then seen that the license for Send2CRM Analytics had expired

image-20250223-202927.png

This was for an internal demo so the license was set to Active/Does not Expire.

Everything then worked as expected.

Do we need a way of surfacing expired licencing to the user?

 

Related content