我已经设置了一个名为FileFound
的包级变量,用于将平面文件参数化为SQL对象的SSIS中的每个循环的DB对象。我已将此表达式设置为完整文件路径,包括我想循环的文件夹中第一个文件的扩展名。
但是,这会产生以下错误,我不知道如何解决:
TITLE: Package Validation Error
------------------------------
Package Validation Error
------------------------------
ADDITIONAL INFORMATION:
Error at Data Flow Task [OLE DB Destination [10]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E37.
Error at Data Flow Task [OLE DB Destination [10]]: Opening a rowset for "C:\Python27\Whoscored\WhoScoredData\MatchPlayers\410988-08-14-2010-Aston Villa-v-West Ham-Away-Team.txt" failed. Check that the object exists in the database.
Error at Data Flow Task [SSIS.Pipeline]: "OLE DB Destination" failed validation and returned validation status "VS_ISBROKEN".
Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.
Error at Data Flow Task: There were errors during task validation.
(Microsoft.DataTransformationServices.VsIntegration)
------------------------------
BUTTONS:
OK
------------------------------
有谁能告诉我需要解决的问题才能修复此错误?
由于
答案 0 :(得分:1)
我认为您的“源文件名称”变量在您的开发中已经与您的“目标表名称”变量混淆了。 OLE DB目标永远不应该与文件名有任何关系。