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
- Open the appropriate workbook in Tableau Server
- Download the workbook and open it in Tableau Desktop
- 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
- For the local copy you just created, review and note any data source relationships on the “Data Source” tab.
Example 1:
Example 2:
- Replace server data source with local copy
- Go to “Data”
- Click “Replace data source"
- Ensure the local copy is the replacement
- Close the Tableau Server data source (the one with the Tableau logo)
- Right click the data source
- Click “Close”
- Open any sheet (not a dashboard)
- Click new data source
- Connect to the appropriate data source using the OneDrive and SharePoint Connector which is located under the “To a Server” section
- Recreate any previous relationships that were on the local source on the OneDrive/SharePoint source, if any exist
- Replace local copy with the OneDrive/SharePoint version
- Go to “Data”
- Click “Replace data source"
- Ensure the local copy is the current
- 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.
- Close the local copy
- Right click the data source
- Click “Close”
- 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
- Rename the data source (if necessary)
- Right-click the data source
- Click “Rename”
- 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
- Close the workbook in Desktop
- 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.