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.
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.
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.
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.
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.
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.
000383577

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.