【发布时间】:2018-08-16 05:45:08
【问题描述】:
我有一个 SSIS 包 (SQL 2017),它将数据从 Access 数据库导入 SQL 数据库。
出现以下错误:
[Source - MaintenanceDetails [140]] Error: Failed to retrieve long data for column "JobNotes".
[Source - MaintenanceDetails [140]] Error: There was an error with Source - MaintenanceDetails.Outputs[OLE DB Source Output] on Source - MaintenanceDetails. The column status returned was: "DBSTATUS_UNAVAILABLE".
[Source - MaintenanceDetails [140]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Source - MaintenanceDetails.Outputs[OLE DB Source Output]" failed because error code 0xC0209071 occurred, and the error row disposition on "Source - MaintenanceDetails" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Source - MaintenanceDetails returned error code 0xC0209029. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
我已经尝试了以下方法来解决这个基于其他尚未解决问题的 Stackoverflow 问题:
1) 为“BLOBTempStoragePath”和“BufferTempStoragePath”设置路径
2) 将 AutoAdjustBufferSize 设置为 False
3) 创建错误输出以将失败的错误放入另一个选项卡中
4) 将“Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Wow6432Node\Microsoft\Office\16.0\Access Connectivity Engine\Engines\Excel”的“TypeGuessRows”设置为 0
5) 我曾尝试在 Management Studio 中使用导入/导出向导,但收到相同的错误消息。
连接正在使用:
本机 OLE DB\Microsoft Office 12.0 Access 数据库引擎 OLE DB 提供程序
本机 OLE DB\SQL Server Native Client 11.0
是否有人对我可以尝试解决此问题的任何其他建议?
【问题讨论】:
-
当一切都失败时,尝试先导出到平面文件,然后使用 SSIS 导入平面文件。这将排除任何特定于连接的错误。如果仍然抛出错误,你可以很确定它是导致它的数据。
-
感谢您的回复@ppijnenburg。我可以使用 Access 中的导出向导成功地从 Access 导出到文本文件。当我尝试在 SSIS 中使用该文本时,我得到:[平面文件源 [56]] 错误:数据转换失败。 “JobNotes”列的数据转换返回状态值 4 和状态文本“文本被截断或目标代码页中有一个或多个字符不匹配。”。
标签: sql-server ssis