Is there a way to get both the task name and the previous data flow task name that's inputting the data?
THanks in advance,
-Chris
PS, the VariableContainer didn't seem to contain any of the system variables- ex. the below statement returned false.
this.VariableDispenser.Contains("System::SourceName")
Are you talking about a control flow task or a data flow component? For a dataflow component you can not get any information about any other component other than yourself.As for the variable dispenser, unless you have added variables to it via the lock methods then it contains no variables. Additionally, there is no such system variable as SourceName.
Thanks,
Matt|||I am talking about a dataflow component.
Do I have to add the system variables to the VariableDispenser?
Thanks for your help Matt,
-Chris|||Yes, you have to add all variables to the variable dispenser in the form of the lock methods. Otherwise the variable dispenser is empty.
Matt|||
I added the System::SourceName variable to the custom data flow component by using LockOneForWrite, but gave an error that that variable doesn't exist.
Is there a place where I can find a listing of the system variables available at the data flow component level?
|||As I mentioned in my original post, there is no such system variable. You can look in the designer to see all the system variable that are available.Matt|||
Matt David wrote: As I mentioned in my original post, there is no such system variable. You can look in the designer to see all the system variable that are available. Matt
Just to clarify Matt's point...SSIS actually does have a System::SourceName variable but it is only available in the eventhandler container. You can't reference it in your control-flow.
-Jamie|||I believe you can get hold of the component next to it in the flow, by looking at one of the input collections. However you can't find out the component that added a column to a flow.
No comments:
Post a Comment