Loading

Troubleshooting 'Something Has Gone Wrong' Access Check Errors in Salesforce Experience Builder with Lightning Components

Veröffentlichungsdatum: Oct 16, 2026
Beschreibung

Overview

Access check violations in custom Lightning (Aura) components are strictly enforced in Experience Builder (formerly Community Builder). An access check violation happens when a Lightning component tries to access an attribute, method, or property it is not allowed to access. The page then shows an error or fails to load. This article explains the common error messages and how to fix them.

Common Error Messages in Experience Builder

In the Experience Builder preview or a published site, users may see one of these messages. Each message starts with: "Try refreshing the page. If that doesn't do the trick, describe what you were trying to accomplish to your Salesforce administrator." Some versions also say: "give your Salesforce administrator the following error ID" (for example, Error ID: b2e83d6e-63e9-422f-b532-0cfc9c393334).

  • Error 1: Action failed: c$CloudCrazeComponent$controller$getHost [Cannot read property 'Qb' of undefined]

  • Error 2: Something has gone wrong. Error in $A.getCallback() [Cannot read property 'Qb' of undefined]. Failing descriptor: {markup://c:CloudCrazeTopicRelatedProducts}. Please try again.

  • Error 3: Action failed: c$CloudCrazeComponent$controller$getHost [Cannot read property '$getTypeDefDescriptor$' of undefined]

  • Error 4: Something has gone wrong. Error in $A.getCallback() [Cannot read property '$getTypeDefDescriptor$' of undefined]. Failing descriptor: {markup://c:CloudCrazeTopicRelatedProducts}. Please try again.

 

Behavior in Published Sites When Lightning Component Debug Mode Is Disabled

If the page contains custom Lightning components with access check errors, the page may or may not display, depending on which component failed and where it sits. If the error page is not displayed, the rest of the page still renders, except for the failing component.


Behavior in Published Sites When Lightning Component Debug Mode Is Enabled

The user is not redirected to the error page. Instead, the user sees an infinite loading indicator, or the page fails to load entirely. If the browser developer tools are open, the access check errors for the components appear in the console output.

 

Lösung


How to Identify the Component That Causes the Error

  1. Look at the error message dialog and note the component name. Example: in the error "Action failed: c$CloudCrazeComponent$controller$getHost [Cannot read property '$getTypeDefDescriptor$' of undefined]", the component is c:CloudCrazeComponent and the issue is in the getHost() function in the controller JavaScript file.
  2. Open the component in the Developer Console and analyze the code.

 

How to Fix the Access Check Violation

  1. Follow the guidelines in the "Fixing Access Check Errors" section of the Controlling Access topic in the Lightning Aura Components Developer Guide.
  2. Save the changes.
  3. Reload Experience Builder and open the page that threw the error. Confirm the error no longer appears.

 

Common Cause: Undefined Component Attribute

A frequent cause is an Aura component controller or helper JavaScript file that calls component.set() or component.get() on an attribute that is not declared in the component markup. Example: the controller calls component.set("v.someAttribute", "someValue"), but the markup has no aura:attribute declaration named "someAttribute". The component is then setting a value on an attribute that does not exist in its attribute schema. To fix it, add the missing aura:attribute declaration to the component markup, or remove the call from the controller or helper.


Real-Life Example

In the CloudCraze example above, the getHost() function in the CloudCrazeComponent controller called component.set() on an attribute that the component markup did not declare. This caused the error in Experience Builder. Declaring the attribute in the markup resolves it.

Zusätzliche Ressourcen
Nummer des Knowledge-Artikels

000383577

 
Laden
Salesforce Help | Article