0
我正在开发一个SSIS包,用于将XML文件中的数据添加到现有的SQL Server表中。我已经完成了几个类似的项目,但在这个XML文件,我得到的错误从数据流标签中的XML任务和数据流任务之间:XML任务错误消息十六进制无效字符
Error: 0xC002F304 at XML Task, XML Task: An error occurred with the following error message:
"'', hexadecimal value 0x15, is an invalid character. Line 28, position 54.".
Error: 0xC002928F at XML Task, XML Task: Property "New Source" has no source Xml text;
Xml Text is either invalid, null or empty string.
Task failed: XML Task
Warning: 0x80019002 at zSTU_TS_Element: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (2) 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 "zStu_TS_Element.dtsx" finished: Failure.
你知道我怎么能解决这个问题?
这是它是从我的XML文件指的是行:
<z:row c0='12' c1='80' c2='2006-04-17' c3='539' c4='1M2083N4N5N6N75800901110 11 '/>
THanks!我只是研究了我自己和你的正确。我研究了一些关于XML 2.0的内容,但它似乎并不支持这个特性。你能证实吗? – salvationishere 2010-08-27 16:16:08
XML 1.1允许字符,但只能编码为字符引用,例如。 ''。这样做的目的很少。目前XML 2.0并不存在,它只是被删除XML的遗留问题而被启动的想法。 – bobince 2010-08-27 16:34:06
太棒了!非常感谢! – salvationishere 2010-08-27 16:37:44