I have a source from which the files are to be processed. Multiple files are coming to that loacation at any time randomly (Package should run every 2 hours). I have to process only the new files, i can not delete, move the already processed files from that location. I can only copy the files to Archive location. How can I achieve this ?
Share
You can achieve this using the following steps.
the filename in “IncomingFile” variable. Configure to select “Name
and Extension”[In my code I have used that otherwise you need to do
some modification to the script]
“IsLoaded” as Boolean[default to false].
“ArchivePath” as the readonly variable. “IsLoaded” should be the
ReadandWrite variable.
Write the following code in the script component. If file is already
exists then it will return true. Otherwise False.
Use the Precedence constraint to call the Data flow task and evaluation operation should be “Expression” . Set something as follows in your expression box.
@IsLoaded==FalseHope this helps.