In a Tableau Prep flow, user right-clicks a step (e.g., a Clean step) and selects "Preview in Tableau Desktop" to create a workbook. After building views with this workbook, an attempt to publish it to Tableau Server/Cloud or save a pachaged workbook fails with the following error message:
Unable to complete action
An unexpected error occurred saving the packaged workbook.
The process cannot access the file because it is being used by another process.
*The data source created as an intermediate output from the Tableau Prep "Preview in Tableau Desktop" function has a name format like Superstore-node-Cleaning 1-bfe863de04864bfc8c1b5881fff35e89.
This error occurs because Tableau Prep maintains a lock on the intermediate data file (e.g., a .hyper extract) that it generates for the "Preview in Tableau Desktop" feature. When Tableau Desktop attempts to package the workbook and its data source for publishing/saving, it is blocked from accessing this locked file, which triggers the error.
To work around the file lock issue, replace the data source in the workbook from the local, intermediate file generated by Tableau Prep to the final data source.
Follow these steps to replace the data source before publishing:
View flow output in Tableau Desktop
"Preview in Tableau Desktop" from Tableau Prep Builder Shows Fewer Rows of Data Than Expected
005224867

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.