SSIS:根级别的数据无效

时间:2018-02-19 09:41:17

标签: ssis

我想通过在SSIS中使用ForEachLoop容器来迭代xml_1.xml中xpath / root / filepath中的值,请参阅我的xml文件完整路径,如下所示:
enter image description here

我的XML文件内容如下所示:

<root>
    <filepath>1.txt</filepath>
    <filepath>2.txt</filepath>
</root>  

以下屏幕截图是我在SSIS中的软件包: enter image description here

enter image description here

但是当我运行此包时,我总是收到以下错误消息:

SSIS package "C:\Users\zhanzhex\source\repos\Integration Services Project1\Integration Services Project1\loopThrowXml.dtsx" starting.
Error: 0xC0010014 at Foreach Loop Container, Foreach NodeList Enumerator: Data at the root level is invalid. Line 1, position 1.
Warning: 0x80019002 at Foreach Loop Container: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
Warning: 0x80019002 at loopThrowXml: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "C:\Users\zhanzhex\source\repos\Integration Services Project1\Integration Services Project1\loopThrowXml.dtsx" finished: Failure.
The program '[1168] DtsDebugHost.exe: DTS' has exited with code 0 (0x0).

任何人都可以告诉我为什么以及如何解决它?

0 个答案:

没有答案