错误

错误:无法连接到数据库。 出现基础数据库错误。 类未注册

Last Published: May 10, 2024

错误消息

In some instances, when adding a Microsoft Excel table to ArcMap, or trying to expand an Excel spreadsheet in ArcCatalog, the following error message is returned:

Error:   
Failed to connect to database. An underlying database error occurred. Class not registered
Failed to connect to database. An underlying database error occurred. Class not registered

原因

The error occurs because Microsoft Office System Driver is not installed on the machine. This prevents ArcMap from reading .xls and .xlsx file formats. Refer to ArcMap: Understanding how to use Microsoft Excel files in ArcGIS for more information.

解决方案或解决方法

To resolve this issue, use one of the following options:

Install Microsoft Access Database Engine (32-bit)
Microsoft Access Database Engine installs a set of components that can be used to facilitate the transfer of data between 20xx Microsoft Office System files and non-Microsoft Office applications such as ArcMap. Since ArcMap runs on a 32-bit application, install the 32-bit Microsoft Access Database Engine 2016 from the Microsoft Download Center.

Note:
Refer to Microsoft Access Database Engine 2016 Redistributable for more information on the latest Microsoft Access Database Engine.

Save the Excel file in a .csv file format

  1. Open the tabular data or Excel file in Microsoft Excel.
  2. Click File and select Save As.
  3. Under the Save as type drop-down list, select CSV (Comma delimited), and click Save to save the file in a .csv format.
Save Excel sheet as .csv

Use the Excel To Table tool

The Excel To Table tool converts Microsoft Excel files into a table.

  1. In ArcMap, navigate to Toolboxes > System Toolboxes > Conversion Tools > Excel > Excel To Table.
  2. In Input Excel File, browse the Excel file.
  3. Set a name and location for Output Table.
  4. Click OK to execute the tool.
The Excel To Table tool
Note:
In some cases, saving .xlsx files to the older version .xls file may circumvent the error.

文章 ID: 000013670

接收通知并查找新问题或常见问题的解决方案

从我们全新的 AI 聊天机器人中获得简明答案和视频解决方案。

下载 Esri 支持应用程序

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项