Loading

Experience Cloud Site Error: Blank Page or Lightning Component fails to load for Guest User or Experience Site User

Дата публикации: Jun 22, 2026
Описание
If your Lightning Component has an apex controller attached, and if that apex controller has code which queries the Knowledge Object (Knowledge__kav). 

When trying to access a page in your Experience Cloud site which has this page as an authenticated user (Partner Community User or Experience Site User being the best examples) who does not have at least read access on the Knowledge object in the profile or permission set. The component will intermittently fail to load.

If you make a change to the component as the admin user and then save the component, and then login as the Experience Site user, the component will load. 4-5 hours later it will fail to load. 

This can make troubleshooting the issue a real problem. 

This can also occur if your Custom Theme Layout references the Knowledge Object also. 

Example Component:
 
<aura:component controller="CaseController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global" >

</aura:component>

Example Controller:
public without sharing class CaseController {
     
    @AuraEnabled
    public static List<Knowledge__kav> searchArticles(String dataCategory){
        
        List<Knowledge__kav> knowledgeArticleList = new List<Knowledge__kav>();
        try{
            
            knowledgeArticleList = [select title,Summary,UrlName from Knowledge__kav where PublishStatus = 'Online' limit 6];
            return knowledgeArticleList;
            
        }catch(Exception ex){
            
            return null;
        }
    }
}

 
Решение

To prevent the Lightning component from intermittently failing to load, ensure that all Experience Cloud users who access any page containing a component whose Apex controller queries the Knowledge object (Knowledge__kav) have at least Read access to the Knowledge object.

Option 1: Update the User Profile

  1. Navigate to Setup > Users > Profiles.
  2. Find and open the Profile assigned to the Experience Cloud user (for example, the Partner Community User profile).
  3. Under Standard Object Permissions, locate the Knowledge object.
  4. Enable the Read checkbox.
  5. Save the Profile.

Option 2: Use a Permission Set

  1. Navigate to Setup > Users > Permission Sets.
  2. Create a new Permission Set or open an existing one.
  3. Under Object Settings, locate the Knowledge object.
  4. Enable Read access.
  5. Save the Permission Set.
  6. Assign the Permission Set to all affected Experience Cloud users. 
Номер статьи базы знаний

000384125

 
Загрузка
Salesforce Help | Article