在 SSIS 中导入 Excel 时出错

Error when importing Excel in SSIS

我正在尝试通过 SSIS

将 Excel sheet 导入 SQL 服务器

该文件是由 SQL 服务器从另一台计算机导入任务生成的。

但是当我尝试 运行 它时 machine/Server

上的 SSIS

我收到这个错误

TITLE: Package Validation Error

Package Validation Error

ADDITIONAL INFORMATION:

Error at Data Flow Task 1 [Source - 'detail_report (4)$' [53]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "SourceConnectionExcel" failed with error code 0xC0209302. There may be error messages posted before this with more information on why the AcquireConnection method call failed.

Error at Data Flow Task 1 [SSIS.Pipeline]: Source - 'detail_report (4)$' failed validation and returned error code 0xC020801C.

Error at Data Flow Task 1 [SSIS.Pipeline]: One or more component failed validation.

Error at Data Flow Task 1: There were errors during task validation.

Error at MobUp02 [Connection manager "SourceConnectionExcel"]: The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered. If the 32-bit driver is not installed, run the package in 64-bit mode. Error code: 0x00000000. An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".

Error at MobUp02 [Connection manager "SourceConnectionExcel"]: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=219816

(Microsoft.DataTransformationServices.VsIntegration)

我用谷歌搜索并将 Run64bitRuntime 更改为 False,但问题仍然存在

有人知道怎么解决吗??

尝试安装 access runtime 2010,如果没有解决,则 access runtime 2007。它可能会解决您的错误。

Select 32 位或 64 位,具体取决于您的系统。

尝试检查以下内容:

  1. 服务器 BI 安装版本
  2. 在您的计算机上安装相同的 Excel 版本
  3. 将 Excel 文件放在同一路径上或将 Excel 源文件路径更改为您的计算机路径。

The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered.

我认为您应该下载 Access Database Engine 2010 32 位:

附加信息

您可以采取 2 种解决方法来解决使用 64 位 ms office 导入 excel 的问题:

  1. 使用 OLEDB 源而不是 Excel 源
  2. 使用 SQL 服务器导入和导出向导

查看以下详细文章,其中包含非常有用的信息:

Select 解决方案资源管理器 window 中的项目(不是解决方案),然后从 Visual Studio 2019 菜单 select:

项目 -> 属性

属性 页面 window 打开,然后 select:

配置属性 -> 调试 -> 调试选项 -> Run64BitRuntime

将该选项设置为 False,错误将消失。它对我有用。

因为我也遇到了这个问题,我通过安装这个“Microsoft Access Database Engine 2010”软件解决了这个问题 下面我附上 link 以下载您需要在本地安装的软件以及该 SSIS 包将 运行 安装的服务器 Link-Cick here to download Microsoft Access Database Engine 2010