I created a DTS package that pulls a file and then puts it on an ftp site using "Execute Process Task Properties". The file transfer is done using FTP Command Line. My problem is that the ftp site requires the password to be changed every month or so (not on a regular schedule). However, the ftp site allows me to rotate between 2 passwords so that if one password doesn't work, then the other must. Rather than constantly updating the password within the DTS Package, I thought it would be wise to set up 2 steps. One step would be hardcoded with one of the passwords and the other step would be hardcoded with the other password.
Here's the parameter for 1st ftp step (with dummy info):
Here's the parameter for the 2nd ftp step (with dummy info):
I set up the package so that the if the first ftp step failed, then the 2nd ftp step would run.
When I scheduled the job to run, the file is ftp'd correctly (which is the last step), but the job returns a failed message. Assuming there are no other errors, is this because all steps in a package must execute successfully in order for the entire job to be considered successful? If so, can anyone think of a way around this so that I can still hardcode the two ftp passwords in my command line yet still have all the steps execute successfully?
Here's the parameter for 1st ftp step (with dummy info):
Code:
ftps -user:John.Doe -password:ABC12 -s:\\D:\FTPScript.txt eft.abccompany.com
Here's the parameter for the 2nd ftp step (with dummy info):
Code:
ftps -user:John.Doe -password:XYZ34 -s:\\D:\FTPScript.txt eft.abccompany.com
I set up the package so that the if the first ftp step failed, then the 2nd ftp step would run.
When I scheduled the job to run, the file is ftp'd correctly (which is the last step), but the job returns a failed message. Assuming there are no other errors, is this because all steps in a package must execute successfully in order for the entire job to be considered successful? If so, can anyone think of a way around this so that I can still hardcode the two ftp passwords in my command line yet still have all the steps execute successfully?