Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

How do I define the Source in a SSIS File System task?

$
0
0

I have a SSIS package that uses a ForEach loop to build purchase orders as .PDF files.  The input to the loop is an SQL Select to get all PO's not processed yet.

After the process generates the purchase order, emails it to the vendor, I then try to move the .PDF file to an Archive folder using a File System task (MoveFile type).  When I execute the package, it's telling me I have invalid characters in the path.  I've defined 2 variables at the package level (ArchiveSrc and ArchiveDst).  The value of the ArchiveDst is just my constant path of the Archive folder.  The ArchiveSrc variable I build with an expression like this:

@[User::PDFPath]  + "PO" + @[User::PO] + TRIM(@[User::PORelVsn]) + ".pdf"

PDFPath is defined as: \\corp1srv\common\pdf\

"PO", PO, PORelVsn just make up the name of the file with the .pdf extension.

I'm using the same above expression when I generate the .PDF and it creates the file just fine.  Will it not let me define the ArchiveSrc with an expression?  Do I have to do something different to the syntax to define it this way? 


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>