KNOWLEDGE BASE

"Error: Something went wrong and the file wasn't uploaded." Occurs When Uploading Workbooks To Tableau Server


Published: 25 Jan 2022
Last Modified Date: 30 Jan 2022

Issue

"Error: Something went wrong and the file wasn't uploaded." error is displayed when uploading workbooks to Tableau Server.

User-added image

Environment

  • Tableau Server

Resolution

Option 1

  • Enable CORS on Tableau Server and configure the URL of Tableau Server in vizportal.rest_api.cors.allow_origin.
                tsm configuration set -k vizportal.rest_api.cors.enabled -v true
                tsm configuration set -k vizportal.rest_api.cors.allow_origin -v "https://<Tableau Server>"
                tsm pending-changes apply

Option 2

  • Enable CORS on Tableau Server and grant any origins by using an asterisk(*) as a wild card to match all sites.
                tsm configuration set -k vizportal.rest_api.cors.enabled -v true
                tsm configuration set -k vizportal.rest_api.cors.allow_origin -v "*"
                tsm pending-changes apply

Option 3
  • Disable CORS feature if it is not in use.
                tsm configuration set -k vizportal.rest_api.cors.enabled -v false
                tsm pending-changes apply
 

Cause

If the Cross-Origin Resource Sharing setting is enabled, origins including Tableau Server URL need to be clarified in "vizportal.rest_api.cors.allow_origin".
Did this article resolve the issue?