KNOWLEDGE BASE

Error "Cannot read password from file" Using tabcmd --password-file


Published: 28 Feb 2017
Last Modified Date: 28 Feb 2017

Issue

When using tabcmd and logging in using a password file, the following error occurs:
Cannot read password file <path>

Environment

  • Tableau Server
  • tabcmd

Resolution

  1. Verify the password file's location
  2. Ensure the contents of the text file are only the user's password and nothing else
  3. Wrap the file path with quotes: [tabcmd login -s ServerURL -u UserName --password-file "c:\tabcmd\command line utility\passwordfile.txt"]

Cause

Tabcmd is unable to read the contents of the file because the path is formatted incorrectly, the file doesn't exist at the specified location, or the contents of the file are unexpected.
Did this article resolve the issue?