知识库

连接到 Access 365 时出现“Unable to connect to the Microsoft Access database”或“Database error 0x80040154: Class not registered”错误


发布时间: 19 Dec 2018
上次修改日期: 24 Aug 2022

问题

尝试连接到 Microsoft Access 365 时,出现以下错误之一:

“An error occurred while communicating with Microsoft Access. Download and install the drivers and then connect(与 Microsoft Access 通信时出错。下载并安装驱动程序,然后连接)

Unable to connect to the Microsoft Access database(无法连接到 Microsoft Access 数据库)
"C:\Users\<username\Filepath\>accdb". Check that the path is correct and that you have access privileges for the requested file.("C:\Users\<username\Filepath\>accdb"。检查路径是否正确,并且您具有所请求文件的访问权限。)”

或者

“The drivers required to connect to the data source are not installed. The error may need to be resolved through local configuration changes on the Tableau side. 数据库错误 0x80040154:Class not registered Unable to connect to the Microsoft Access database "<filepath>.accdb". Check that the path is correct and that you have access privileges for the requested file.”(未安装连接到数据源所需的驱动程序。可能需要通过更改 Tableau 端的本地配置来解决该错误。数据库错误 0x80040154: 类未注册。无法连接到 Microsoft Access 数据库“<filepath>.accdb”。请检查路径是否正确,以及您是否拥有所请求文件的访问权限。)

在 Tableau Prep 中选择 Access 连接中的文件名后或尝试在 Tableau Desktop 中创建到 Microsoft Access 的连接时出现错误。

 

环境

  • Tableau Prep
  • Tableau Desktop
  • Windows
  • Access 365

解决方案

选项 1:

  1. 卸载 Microsoft Access 数据库引擎驱动程序,该驱动程序将列在“应用和功能”或“程序和功能”中(位于“卸载程序”下)。可能是驱动程序的 32 位版本。
  2. 转到 Tableau 驱动程序页面 (http://tableau.com/support/drivers),并导航到“Microsoft Access”>“Tableau Prep”。 它表明必须随 Tableau Prep 一起安装 64 位版本的驱动程序。Tableau Desktop 的说明稍微复杂一些。
  3. 单击驱动程序页面上的链接转到:https://www.microsoft.com/en-us/download/details.aspx?id=13255。单击“下载”链接并确保选择其中包含“x64”的下载软件包。安装驱动程序。
  4. 连接现在应该工作正常。可能需要关闭和打开 Tableau Prep 或 Tableau Desktop 以反映更改的驱动程序。

选项 2:

  1. 如果您有权访问较新版本的 MS Access,请将 .mdb 文件加载到该较新版本的 Access 中。
  2. 选择“文件”/“另存为”,并将其另存为较新的文件类型 .accdb。 
  3. 关闭 MS Access。
  4. 打开 Tableau 并加载 .accdb 文件。

选项 3:

  1. 打开 Tableau Desktop。
  2. 连接到 MS Access .mdb 文件。
  3. 创建该 .mdb 文件的数据提取。
  4. 如果使用 Tableau Prep,请使用数据提取的本地副本作为 Tableau Prep 中的输入节点。

原因

已安装 32 位版本的 Microsoft Access 驱动程序。
此文章是否已解决问题?