What i am trying to do is insert the filename as a colum. I am using the 'Derived Colum' in the Data flow to Add another colum to my table. However i need to use a variable which would contain the filename. I can not hardcode the filename because i am using a for loop to pick up a bundle of files. IS there anyways i can point the variable to the Filename somehow ?
Create a Variable called FileName of type String. In your For Each Loop you want to send the want to Map the fileName to the FileName value (I've done this using an object variable as the source of the loop). Then in your Derived columns task you can use the Variable as the datasource for your column.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.