Last Modified Date: 09 Jan 2019
Environment
Tableau ServerAnswer
Step 1. Whitelist the file protocol in Tableau Server
- Add the file protocol scheme to the safe list by using the tabadmin set command. The schemes
http
,https
,gopher
,news
, andmailto
are whitelisted by default. This command can contain multiple comma and space-separated values enclosed by double quotes, as in this example:tabadmin set vizqlserver.url_scheme_whitelist "scheme1,scheme2"
The values you specify overwrite previous settings (exluding the default settings). Therefore, you must include the full list of schemes in the
set
command. (You cannot amend the list of schemes by running theset
command repeatedly.)
The list should consist of schemes - such as mailto, file, or javascript - rather than individual urls. The following command is not valid:
tabadmin set vizqlserver.url_scheme_whitelist file:\\pathtomyfilehere
On the computer running Tableau Server, open the Command Prompt window as an administrator and navigate to the Tableau Server bin directory:- On a 32-bit computer:
cd "C:\Program Files\Tableau\Tableau Server\[version]\bin"
- On a 64-bit computer:
cd "C:\Program Files (x86)\Tableau\Tableau Server\[version]\bin"
- On a 32-bit computer:
At the command prompt, run the following commands in order:
- tabadmin stop
tabadmin set vizqlserver.url_scheme_whitelist file
tabadmin config
tabadmin start
Step 2. Whitelist the file path in Internet Explorer
- Open Internet Explorer on the end user's machine.
- Select Tool > Internet Options.
- Navigate to the Security tab.
- Select Local intranet.
- Select Sites > Advanced and add the file path.
Step 3. Create a URL action in Tableau Desktop
- Open Tableau Desktop.
- Create a dashboard.
- In the dashboard select Dashboard > Actions....
- Select Add Action > URL....
- Rename the filter and select the source sheet for the action.
- In URL place the file path start with "file://" For example: file://filesrv01/Public/example-file.txt.
- Publish the workbook to Tableau Server.
Additional Information
This solution only works when using Internet Explorer. Firefox, Chrome, and Safari do not allow access to local file systems as a security measure.Discuss this article... Feedback Forum
Thank you for providing your feedback on the effectiveness of the article.
Open new Case
Continue Searching
Knowledge Base
Community
Product Help
Training and Tutorials