KNOWLEDGE BASE

Error: "Tableau Data Engine Error: 4: The file exists" When Connecting to Excel


Published: 30 Aug 2013
Last Modified Date: 14 Aug 2015

Issue

When you open a workbook or connect to an Excel file, one of the following errors might occur:
 
An error occurred while communicating with data source '<data source name>'
Tableau Data Engine Error: 4: The file exists.
- OS::mkstemp(suffix=0, prefix="tmp", dir="<path to temp file>")

 
Or:
Tableau Data Engine Error: 4: Creator::operator()(path="'<path to temp file>"): File already exists.

Environment

  • Tableau Reader
  • Tableau Desktop
  • Microsoft Excel

Resolution

  • Exit all open applications.
  • Navigate to the folder specified in the error message. 
  • Delete any .TMP files that exist in that folder.

Cause

Tableau Desktop is attempting to create a temporary file using a file name that already exists in the temporary folder.
Did this article resolve the issue?