知識庫

存取已發布工作簿時發生錯誤「Unable to connect to the data source」或「User(s) do not have permission to access datasource」


發佈時間 : 18 Dec 2017
上次修改日期 : 20 Jul 2023

問題

開啟使用發行資料來源的檢視時,可能會出現以下錯誤:
 
"Unable to connect to the data source.
Try connecting again. If the problem persists, disconnect from the data source and contact the data source owner."(「無法連線至資料來源,請嘗試重新連線。如果問題持續存在,請中斷與資料來源的連線,並聯絡資料來源擁有者。」)

"DataServiceFailure
Unable to connect to the server "localhost". Check that the server is running and that you have the access privileges to the requested database."(DataServiceFailure 無法連線至伺服器「localhost」。請檢查伺服器是否正在執行,而且您對於要求的資料庫具有存取權限。)

 
User(s) do not have permission to access datasource.(使用者無權存取資料來源。)
There was an error with the data source "[DataSourceName]". Verify that the data source is configured correctly.(資料來源 "[DataSourceName]" 發生錯誤。請確認資料來源已正確設定。)

環境

  • Tableau Cloud
  • Tableau Server

解決方法

選項 1

以站點管理員或資料來源擁有者身份,將發行資料來源的「連線」權限授予受影響的使用者。

選項 2

針對發行資料來源使用內嵌密碼重新發布工作簿。
  1. 在 Tableau Desktop 中開啟受影響的已發布工作簿。請參閱從伺服器開啟發布的工作簿瞭解相關步驟。
  2. 重新發布工作簿,並確保所有發行資料來源的「驗證」設定已設為「內嵌密碼」。 有關詳情,請參閱設定認證以存取您發布的資料

選項 3

使用 Web 製作和內嵌認證來重新儲存工作簿。
  1. 以工作簿作者或站點管理員身分,使用 Web 製作功能來編輯工作簿。請參閱在 Web 上編輯 Tableau 檢視瞭解相關步驟。
  2. 選取「檔案」,以及「另存新檔...」。 
  3. 以現有工作簿的相同名稱覆寫該工作簿,並選取「內嵌資料來源的密碼」方塊。
  4. 選取「儲存」

原因

受影響的使用者未獲授予權限連線至發行資料來源,或工作簿的部分發行資料來源已設為「提示使用者」而非「內嵌密碼」。
 
這篇文章是否解決了問題?