|
I have a datasource that needs to be created using variables but the "XML File from Variable" doesn't recognise the source when using the variables. If you hard code the path in the variable it works OK. All ideas gratefully received. The hardcoded path that works is:
If this isn't possible does anyone have any workarounds? Many thanks
(comments are locked)
|
|
You actually will need to build this as an expression within the property window of the "XMLSource" variable. Your expression should look like:
Then ensure you have the EvalueAsExpression property set to true for your "XMLSource" variable. @Shawn Melton +1. This should do it. Although I have to edit your answer to show double backslashes (put 4 backslashes to make it work) :) The same way SSIS works ;)
Apr 13 '12 at 06:27 AM
Usman Butt
Awesome, that works perfectly. Many thanks.
Apr 13 '12 at 07:35 AM
Mrs_Fatherjack
(comments are locked)
|



just a thought - variable scope is a pain in SSIS, are all the variable declared in the right places?
All variables in the package scope so should be OK. I've been burnt by that before. :)