Loading

Experience Site User cannot view 'Files' migrated from 'Attachments'

Data pubblicazione: Jul 9, 2026
Descrizione

Why Migrated Files Are Not Visible to Experience Cloud Site Users

When Experience Cloud site users cannot view Files after a mass migration from Attachments to Files, this is caused by the default sharing settings on the migrated File records.
By default, Files in Salesforce are only shared with internal users. When Attachments are migrated to Files, the ContentDocumentLink records that link the files to their parent records retain the original internal sharing settings: ShareType is set to "I" (Internal Only) and Visibility is set to "InternalUsers." These settings make the files invisible to Experience Cloud site users, regardless of the user's license or permissions.
To fix this, you must update the ShareType to "V" (Viewer) and Visibility to "AllUsers" on the ContentDocumentLink records. Because there may be a large number of records to update, this is best done using the Salesforce Data Loader.
For background on Experience Cloud file sharing, see the Additional Resources section.

Risoluzione

Step 1: Export ContentDocumentLinks Using Data Loader

  1. Open Data Loader.
  2. Click Export and log in.
  3. Select Content Document Link (ContentDocumentLink).
  4. Click Next then Finish.

On the exported .csv file, retain only these field columns: LINKEDENTITYID, CONTENTDOCUMENTID, SHARETYPE, and Visibility. Save the result as a new CSV file.
Update the field column values as follows:

  • SHARETYPE → change value to V
  • Visibility → change value to AllUsers

Step 2: Delete Existing ContentDocumentLinks Using Data Loader

Before inserting the updated ContentDocumentLink records, you must delete the existing ones to prevent a duplicate error: "Document with ID: 069000000000000 is already linked with the entity with ID: 500000000000000: Linked Entity ID."
Use the ID column from your original exported ContentDocumentLinks CSV file for the deletion.

  1. Open Data Loader.
  2. Click Delete and log in.
  3. Select Content Version (ContentVersion). Map the ID column from the original ContentDocumentLinks .csv file.
  4. Click Next then Finish.

Step 3: Insert Updated ContentDocumentLinks Using Data Loader

  1. Open Data Loader.
  2. Click Insert and log in.
  3. Select Content Document Link (ContentDocumentLink). Map the available field columns from your updated CSV file.
  4. Click Next then Finish.

After the insert completes, verify that Experience Cloud site users can now view the previously invisible files.

 

Numero articolo Knowledge

000384546

 
Caricamento
Salesforce Help | Article