Loading

Unable to Preview Files and Documents in Salesforce — "File Unavailable" Error

Veröffentlichungsdatum: Aug 18, 2026
Beschreibung

In Salesforce, files attached under the Files related list may become unavailable for preview, showing a "File unavailable" error page instead of the file content.

To reproduce this issue:

  1. Log in to the org as an admin or non-admin user
  2. Open the Files tab
  3. Click on any existing file
  4. The error appears: "File unavailable"

This happens even though the same file downloads successfully and displays its content without issues. The file also previews correctly in a Sandbox environment, which confirms the file itself meets Salesforce's size and format requirements — the issue is specific to the Production environment's configuration.

Lösung

This issue occurs because the "Enable Files for Connect" permission is disabled in the org's Production environment. This permission controls whether Salesforce Files Connect can generate and serve file previews — it's separate from file download access, which is why downloads still work while previews fail.

Steps to Resolve

Raise a support case with Salesforce Support and request that they enable the "Enable Files for Connect" permission for your org. Once enabled, file and document previews will load correctly without the "File unavailable" error.

Nummer des Knowledge-Artikels

005315516

 
Laden
Salesforce Help | Article