Summary
The intended audience for this article is for Tableau Developers. This article outlines the process for replacing an existing data source in Tableau Desktop using the OneDrive and SharePoint Connector.
How-To
Task: Replace an existing data source in Tableau Desktop using the OneDrive and SharePoint Connector.
Instructions
Step 1 - Open the appropriate workbook in Tableau Server
Step 2 - Download the workbook and open it in Tableau Desktop
Step 3 - Create a local copy of the data source you are looking to replace
- Go to a sheet
- Click on “Data” in the toolbar
- Hover over the data source
- Select “Create a local copy”
- Save wherever you store your local copies
Step 4 - For the local copy you just created, review and note any data source relationships on the “Data Source” tab.
Example 1 -

Example 2 -

Step 5 - Replace server data source with local copy
- Go to “Data”
- Click “Replace data source"
- Ensure the local copy is the replacement
Step 6 - Close the Tableau Server data source (the one with the Tableau logo)
- Right click the data source
- Click “Close”
Step 7 - Open any sheet (not a dashboard)
Step 8 - Click new data source
Step 9 - Connect to the appropriate data source using the OneDrive and SharePoint Connector which is located under the “To a Server” section

Step 10 - Recreate any previous relationships that were on the local source on the OneDrive/SharePoint source, if any exist
Step 11 - Replace local copy with the OneDrive/SharePoint version
- Go to “Data”
- Click “Replace data source"
- Ensure the local copy is the current
Step 12 - Review the data in the sheets to ensure that the data is correctly connected
- If not, review the data in the local copy to see how it's classified/connected/etc.
- If any fields were renamed, calculated fields were created, hierarchies created, etc. in the original source, you will have to rename or recreate these fields on the OneDrive/SharePoint source
- If you see fields in red on the OneDrive/SharePoint source, this means there are errors in finding those fields. Note any of these fields and refer to them on the local source to see how they are recorded and make the changes to the OneDrive/SharePoint source.
Step 13 - Close the local copy
- Right click the data source
- Click “Close”
Step 14 - Create an extract
- Go to “Data”
- Hover over the data source
- Click “Extract”
- Remove the filter(s)
- Click “Extract”
- Save wherever you store your extracts
Step 15 - Rename the data source (if necessary)
- Right-click the data source
- Click “Rename”
Step 16 - Publish the data source
- Go to “Server”
- Click “Publish data source”
- Review the location to ensure the folder is a Tableau Production Data folder in Server under the appropriate "Project". If not, change the correct one.
- Ensure the name is appropriate
- If there is an error message warning you that one with this name already exists, it’s okay to overwrite it
- Add a description, if necessary
- Choose a refresh schedule, if needed
- Review/Update the Authentication section
- Check checkbox named “Update workbook to use…”
- Click “Publish
Step 17 - Close the workbook in Desktop
Note: Do not save
Outcome
Your data should now be connected using the OneDrive and SharePoint Connector.
Further Readings
Adding embedded credentials for OneDrive and SharePoint on Tableau Server
Read more from Tableau about the OneDrive and SharePoint connector
The OneDrive and SharePoint connector allows Developers to connect to a their own data or a scheduled WebI report (Read More About Scheduling)
Need additional help?
Please use this link to contact the Tableau Support Team. Use the “Request Support” button to enter a question or support request.