sql server 2005 - SSIS XML Task with a For Each Loop -
i have transformed xml file
see question complete description
what want know take xml task , have preformed in each loop. want xml files in specific directory transformed , resulting file moved seperate directory.
it's not working. i'm getting following error messaes:
error: 0xc002f304 @ xml task, xml task: error occurred following error message: "data @ root level invalid. line 1, position 1.". error: 0xc002928f @ xml task, xml task: property "new source" has no source xml text; xml text either invalid, null or empty string.
can perform xml transformation within each loop?
the problem xml task expecting variable contain xml data trying transform. in fact variable contained file name , path pointing xml data.
my coworker showed me fix.
inside xml task select sourcetype = file connection.
then set source point file.
here trick. @ bottom see connection manager , inside file name pointed xml task to. click on file name (inside of connection manager) , notice properties window display.
change connectionstring string value (i used "placeholder").
click on plus sign next expressions , add connectionstring this: @[user::filename]
in case filename package variable contains path xml file.
Comments
Post a Comment