KNOWLEDGE BASE

Unable To Run Flow Connecting To Tableau Online By Tableau Prep Builder Command Line On Proxy Configured Environment


Published: 27 Nov 2020
Last Modified Date: 27 Nov 2020

Issue

When running a flow which includes connection to Tableau Online by Tableau Prep Builder Command Line (CLI), the flow fails if a proxy server is configured. The flow successfully can be run by Tableau Prep Builder GUI.

Environment

  • Tableau Prep Builder

Resolution

Edit tableau-prep-cli.bat to include the proxy server information as below:
  1. Go to C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts by Windows Explorer.
  2. Copy tableau-prep-cli.bat and save with an another name to create a backup copy.
  3. Open tableau-prep-cli.bat by a text editor.
  4. Set DEFAULT_JVM_OPT with replacing values for DproxyHost and DproxyPort with the appropriate values for your environment, then save the file
    @rem Add default JVM options here. You can also use JAVA_OPTS and TPREP_CLI_APP_OPTS to pass JVM options to this script.
    set DEFAULT_JVM_OPTS=-DproxySet=true -DproxyHost=<Host name or IP address of the proxy server> -DproxyPort=<port number of the proxy server>
    

 

Cause

Tableau Prep's Java is not using the system proxy.
Did this article resolve the issue?