KNOWLEDGE BASE

Error "EncodeString: bad argument" Connecting to SAS File


Published: 12 Oct 2016
Last Modified Date: 14 Oct 2016

Issue

When attempting to open a workbook connected to live SAS file in Tableau Desktop, the following error message occurs:
"An error occurred while communicating with the data source" EncodeString: bad argument. Unable to properly calculate the domain for the field '<Field Name'. Displayed data may be incorrect. 

Environment

  • Tableau Desktop 10.0.0
  • SAS file

Resolution

Clear out the Tableau cache folder. 

This folder is typically located at C:\Users\<username>\AppData\Local\Tableau\Caching
See more about clearing the Tableau Desktop cache here: Clear the Tableau Desktop Cache.

Cause

The Tableau Desktop cache contained outdated information about the SAS file. 
Did this article resolve the issue?