Cheatable XML task in SSIS
来源:互联网 发布:淘宝最常见韩国模特 编辑:程序博客网 时间:2024/05/18 20:46
You may get fooled when using variables as the XML source in XML task. It does not work at all and you probably catch the error as below
Error: 0xC002F304 at XML Task, XML Task: An error occurred with the following error message: "Data at the root level is invalid. Line 1, position 1.".
Error: 0xC002928F at XML Task, XML Task: Property "New Source" has no source Xml text; Xml Text is either invalid, null or empty string.
Why? I am not informed.
Workarounds? Yes!
1. Create fileConnection in connnection manage, mapping the variable to this connection in expression"connection string" of the property of this object.
then use this fileconncetion in the XML task.
2. before using XML task, leverage a variable to load the XML content by coding in script task.
1) Use a Script task to set value for "v". Remember to put "User::v" at script task's "ReadWriteVariables" property. Then use the following script at Script task
Public Sub Main()
Dim xmld As System.Xml.XmlDocument
xmld = New System.Xml.XmlDocument
xmld.Load("myxslt1.xml")
Dts.Variables("v").Value = xmld.OuterXmlDts.TaskResult = Dts.Results.Success
End Sub2) Put the XMLTask after the Script task in the control flow and point your xslt source to "User::v" at XMLTask.
I verified the first option in my project and suggest to use this one.
- Cheatable XML task in SSIS
- SSIS中ExecuteSQL TASK组件
- SSIS Custom Data Flow Task
- SSIS Execute SQL Task 用法
- Send Mail in SSIS
- PipeLineExecutionPlan in SSIS 2008
- SSIS异常--SSIS FTP Task Variable Remote Path invalid
- SSIS: Throwing errors from script task/component
- SSIS 中的文件系统任务 (File System Task)
- SSIS中Sql Task 获取系统变量
- SSIS使用Script task处理Active Directory
- SSIS中通过Script Task发送邮件 Sql2005
- 为SSIS编写自定义任务项(Task)之入门篇
- 为SSIS编写自定义任务项(Task)之进阶篇
- 为SSIS编写自定义任务项(Task)之高级篇
- SSIS中ExecuteSQL TASK组件关于参数的使用
- SSIS / ETL 中使用 Execute SQL Task 传入/传出参数
- SSIS中ExecuteSQL TASK组件关于参数的使用 SQL2005
- 在 Gradle 脚本中处理Manifest: ClassPath
- DEDECMS 网站迁移教你一招
- spring的aop
- spring中的ioc
- 学习笔记8—JAVA高级视频01_JavaAPI
- Cheatable XML task in SSIS
- empty remove 区别
- SQL面试基本题:delete,truncate,drop 区别
- 企业项目管理的组织形式分类
- 错乱的情感
- МЕЧТЫ СБЫВАЮТСЯ(梦想成真)——本文配俄罗斯流行歌曲《尴尬的年纪》,请进入文章正页点击欣赏
- 项目管理:PMP、IPMP、CPMP之间区别
- [Web开发] IE文档模式终极指南
- mysql密码忘记重置密码