包中的 SSIS 错误 0xC001000E:找不到特定元素时由连接集合抛出

SSIS Error 0xC001000E at Package: Thrown by connection collection when the specific element is not found

我在 Microsoft Visual Studio 2008 使用商业智能的 SSIS 中的批量插入任务编辑器中遇到上述错误。

SSIS Error 0xC001000E at Package: Thrown by connection collection when the specific element is not found
The connection "C:\Temp\Objects.bin" is not found. 
Error: 0xC002F304 at Bulk Insert Task, Bulk Insert Task: An error occurred   with the following error message: 
"Cannot bulk load because the file   "C:\Temp\objects.bin" could not be opened. 
Operating system error code 3(The system cannot find the path specified.).".

如您所见,包的 xml 存在 (objects.bin),我已选择此文件作为源连接。该文件肯定存在,我也尝试将其作为不同的文件类型 (.txt)。我不明白为什么会收到错误消息。

Package.dtsx(XML)

<DTS:Property DTS:Name="DelayValidation">0</DTS:Property>
<DTS:Property DTS:Name="ObjectName">objects.bin</DTS:Property>
<DTS:Property DTS:Name="DTSID">{34E3EEA5-9B40-4B25-9DE7-48B0D14346FE}       </DTS:Property>
<DTS:Property DTS:Name="Description"></DTS:Property>
<DTS:Property DTS:Name="CreationName">FILE</DTS:Property><DTS:ObjectData>     <DTS:ConnectionManager>
<DTS:Property DTS:Name="FileUsageType">1</DTS:Property>
<DTS:Property DTS:Name="ConnectionString">C:\Temp\objects.bin</DTS:Property>  </DTS:ConnectionManager></DTS:ObjectData></DTS:ConnectionManager>
<DTS:ConnectionManager>

批量插入任务编辑器

批量复制需要它正在读取的文件与正在写入的服务器位于同一文件上。很简单。所以现在 sql 服务器目标和源的连接文件在同一台服务器上,问题就解决了。

我应该补充一点,我在复制批量插入然后尝试更改连接文件时也遇到了麻烦 属性。之后就不可能再改了。删除并创建新的批量插入后,该问题得到解决。