How to access variables in ScriptComponent in a DataFlow task
Question
I am trying to access the package level variable "FirstRecord". However, I can't do :
dts.variables("FirstRecord").value = Truth
How do I access variables in a DataFlow Script Component?
Solution
The syntax is different in a Script Component in a Data Flow Task than it is in a Script Task. You are using the syntax for the Script Task.
You can try this to assign a value to the package variable from a Script Component
Variables.FirstRecord = Truth
You can only assign values to a package variable in the PreExecute or PostExecute procedures.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow