知识库

发布和替换数据源时出现“Tableau could not connect to the published data source”错误


发布时间: 27 Apr 2017
上次修改日期: 24 Aug 2022

问题

发布和替换数据源时,可能会出现以下错误,并且工作簿将不会连接到已发布的数据源:
 
Data source [Data Source Name] successfully published, but Tableau could not connect to the published data source. The workbook will continue to use the local data source. To use the published data source, create a Tableau Server connection and replace the data source.(数据源[数据源名称]已成功发布,但 Tableau 无法连接到已发布的数据源。工作簿将继续使用本地数据源。若要使用已发布的数据源,请创建 Tableau Server 连接并替换该数据源。)

环境

  • Tableau Cloud 
  • Tableau Server
  • 数据服务器

解决方案

将计算元数据存储在工作簿(而不是数据源)中。
  1. 在 Tableau Desktop 中打开工作簿。
  2. 在发布任何数据源之前,删除计算。
  3. 将所有数据源发布到服务器。
  4. 连接到已发布的连接时,在工作簿中重新创建计算。
  5. 发布工作簿。

原因

Tableau Data Server 当前不支持引用不同数据源的计算。

其他信息

最初发布数据源时出现以下消息:

The data source you are publishing contains a calculation that references a different data source in this workbook. The calculation will not be valid outside of this workbook, and cannot be used on the server.(要发布的数据源包含在此工作簿中引用其他数据源的计算。该计算在此工作簿外部无效,无法在服务器上使用。)
此文章是否已解决问题?