Attachment Sync Error: HTML_FILE_UPLOAD_NOT_ALLOWED

Grace Wannapongsai
Grace Wannapongsai
  • Updated

Summary

This article explains why you may see [HTML_FILE_UPLOAD_NOT_ALLOWED] error in the Riva Cloud sync log and what to do when Salesforce blocks syncing attachments because the organization has disabled uploads for that file type.

Symptoms / Issue

When encountering this error, users may experience:

  • Error message:

    Omni.Connection.Salesforce.an: [HTML_FILE_UPLOAD_NOT_ALLOWED] Your organization has disabled uploads of this file type. 

  • Attachment sync fails for calendar items (e.g., meeting, event, appointment). 
  • Affected users/items appear in logs (example users: user@company)
  • This setting can impact all users across the organization attempting to sync attachments of this file type. 

Cause of the Issue

Salesforce is configured to disable HTML file uploads, so any attempt to sync attachment of that file type is rejected by Salesforce, causing Riva Cloud to display the error in the sync log. 

Resolution / Steps

The resolution depends on whether your organization requires users to upload HTML/JavaScript files via Riva sync.

Option 1: Update the Org-Wide Salesforce File Upload Setting

To enable HTML uploads in Salesforce, update the org-wide File Upload and Download Security setting.

  1. In Salesforce, navigate to Setup.
  2. Access File Upload and Download Security using either method:
    • In Quick Find, search for File Upload and Download Security.

      - or - 

    • Go to Security > File Upload and Download Security.
  3. Click Edit.
  4. Ensure the option "Don't allow HTML uploads as attachments or document record" is unchecked. 

    html_permission_salesforce.png

  5. Click Save.  

Option 2: Disregard the Error (If HTML/JS Upload is Not Required)

If users do not need to sync HTML or JavaScript file attachments, the error can be safely disregarded. Riva will continue to sync other attachment types normally. This error will appear in logs any time a user attempts to sync an HTML or JavaScript attachment, but it will not affect other sync operations.