Skip to main content
All CollectionsKnowledge BaseEndpoint and SaaS AppsTroubleshooting - Endpoint and SaaS Apps
Error while running Refresh Validation in Org Tools(SFDC 2.0): INVALID TYPE: Cannot use ApexTrigger in this organization
Error while running Refresh Validation in Org Tools(SFDC 2.0): INVALID TYPE: Cannot use ApexTrigger in this organization
Updated today

Problem description


SFDC admin tried to run Refresh Validation on his org configured under Org Tools -> Environment Hub, and gets an error stating: INVALID_TYPE: Cannot use ApexTrigger in this organization

Cause

Missing Permissions:

  • Author Apex or Modify Metadata

  • Customize Application

Resolution

Refer to the Salesforce documents to assign these missing permissions to your SFDC 2.0 admin account:

  1. Modify Metadata - https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_modify_metadata_perm.htm

Note: Professional Edition doesn't support Metadata API access; due to which, the Refresh Validation will generate the above-stated error.

Reference document: Configuring Environment Hub

If this information does not help to resolve the issue, then please reach out to Druva Support Team for further assistance.

Did this answer your question?