我想通过在SSIS中使用ForEachLoop容器来迭代xml_1.xml中xpath / root / filepath中的值,请参阅我的xml文件完整路径,如下所示:
我的XML文件内容如下所示:
<root>
<filepath>1.txt</filepath>
<filepath>2.txt</filepath>
</root>
但是当我运行此包时,我总是收到以下错误消息:
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).
任何人都可以告诉我为什么以及如何解决它?