You may see this error when attempting to view lead, contact, and/or account records in Salesforce.
In nearly all cases, to resolve this, you'll need to add the HubSpot Integration permission set to your users:
- The user does not have the HubSpot Integration Permissions set assigned to him or her.
- Ensure that all users who need to view the HubSpot Intelligence Visualforce Pages have the HubSpot Integration Permissions set assigned to his/her user. Navigate to Setup > Manage Users > Permission Sets > HubSpot Integration Permissions > Manage Assignments.
If that does not solve the problem, also check the following:
- The user's profile does not have read permissions to the HubSpot Custom objects.
- In Salesforce, Go to Setup > Manage Users > Profiles > [that user's particular profile] > Custom object settings. Please ensure the user has access to all 'HubSpot_Inc' Visualforce pages. Depending on the layout of your Salesforce setup menu, this may also show up as a mouseover link at the top of the page. In that case, mouse over the links which say "Enabled Visualforce Page Access", and "Enabled Apex Class Access". Mouse over both of these, click Edit, and ensure all Apex Classes or Visualforce Pages starting with "HubSpot_Inc" are added to the profile.
- Remove any deprecated package components by navigating, within Salesforce, to Setup > Built > Installed Packages. Click on the HubSpot package, review the Unused Components list and remove those items. To remove these items:
- Click on an object in the list, then click Delete. A lot of these are contingent on the others. It's easiest to remove the unused custom objects first - a lot of other things will be removed automatically when you do.
- Salesforce can throw warnings which won't allow the delete. You may need to remove everything that touches the custom item before it can be removed. If you have Salesforce workflows that point to that item, the workflow may need to be removed first. If the item is included on a layout, used in a formula field, or validation rule you will need to remove those contingencies first.
- This does not apply to HubSpot package elements; it applies to anything custom you created which touches HubSpot package elements.
- Salesforce's Clickjack protection is enabled, and it must be disabled. Navagate in Salesforce to Setup > Security Controls > Session Settings > uncheck the boxes for Enabled for customer visualforce pages with standard headers and Enabled for customer visualforce pages with headers disabled.
After addressing the points just mentioned, the user should no longer see this error when attempting to review leads, contacts, and/or accounts records in Salesforce.