Loading

Files not accessible in Lightning

Veröffentlichungsdatum: Sep 22, 2026
Beschreibung

When a user uploads a file in Lightning Experience, the upload progress bar completes, but the Done button does not turn blue. After closing the upload pop-up, the file does not appear to be uploaded. However, upon refreshing the page, the file becomes visible.

Symptoms

Despite being visible after refresh:

  • The file cannot be accessed in Lightning
  • Users encounter the error: "You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary."
  • The same file is accessible in Salesforce Classic

What's Happening

When a file is uploaded in Salesforce, the following records are created:

  • ContentDocument – Represents the file
  • ContentVersion – Stores the actual file data
  • ContentDocumentLink – Controls file sharing and access

In this scenario:

  • The ContentDocument and ContentVersion are created successfully
  • However, the ContentDocumentLink is NOT created

Why This Matters

  • Lightning Experience strictly enforces sharing via ContentDocumentLink
  • Without this link, Lightning users cannot access the file
  • Salesforce Classic is more permissive and may still display the file to admins or file owners, so the file appears uploaded but is inaccessible in Lightning due to missing sharing metadata

Root Cause

This issue occurs when both of the following conditions are met:

  • Files > General Settings > "Enable Files to be ingested into Data Cloud" is enabled
  • The affected user has the App Permission "Query Non-Vetoed Files" assigned via Profile or Permission Set. This permission is intended only for Data Cloud integration users.

When "Query Non-Vetoed Files" is assigned to a standard user, it interferes with the normal file upload process and prevents the ContentDocumentLink from being created.

Lösung

This article explains how to fix files that upload successfully in Lightning Experience but are not accessible afterward. The issue is caused by the "Query Non-Vetoed Files" permission being assigned to a standard user while Data Cloud file ingestion is enabled, which prevents Salesforce from creating the ContentDocumentLink record that Lightning relies on for file access.

Step 1: Verify Org-Level Setting

  • Go to Setup → Files → General Settings
  • Confirm "Enable Files to be ingested into Data Cloud" is enabled (no change required here if Data Cloud is in use)

Step 2: Check User Permissions

  • Review the affected user's Profile and Permission Sets
  • Look for the App Permission: "Query Non-Vetoed Files"

Step 3: Remove the Permission

  • Remove "Query Non-Vetoed Files" from the user
  • Save changes

Confirm the Fix

Ask the affected user to upload a new file in Lightning Experience and confirm it is now accessible without errors.

Nummer des Knowledge-Artikels

005239304

 
Laden
Salesforce Help | Article