【发布时间】:2016-04-21 00:40:31
【问题描述】:
我在使用商业智能的 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>
批量插入任务编辑器
【问题讨论】:
-
第一个错误:“在找不到特定元素时由连接集合抛出 The connection "C:\Temp\Objects.bin" is not found.”暗示它甚至找不到包上的连接管理器。确保批量插入任务和连接管理器之间的链接有效。意思是找不到名为“C:\Temp\Objects.bin”的连接管理器,但屏幕截图中的连接管理器名为“objects.bin”。你是如何运行这个的 - 在 BIDS 中以交互方式运行或部署到服务器?
-
我的本地机器上有 objects.bin 文件,服务器上有要写入的表。我相信如果他们在同一台机器上,问题就解决了。我说的对吗?
-
很有可能。如果您可以对其进行测试并确认,您可以接受您的答案。
-
是的,它有效。测试和工作正常。谢谢。
-
你应该勾选你的答案是正确的
标签: visual-studio ssis business-intelligence