FIX: FTP Task in DTS Deletes File from the Destination Folder After the Package Completes Execution (288330)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

This article was previously published under Q288330
BUG #: 351440 (SHILOH_bugs)
BUG #: 352500 (SHILOH_bugs)

SYMPTOMS

When you use an FTP task in Data Transformation Services (DTS) to move files from an FTP server to a destination folder, the last file in the list is deleted from the destination, after the package completes execution. Th file deletion happens when the package is executed from the GUI. If the package is run from the command line using DTSRUN, the last file is partially copied over.

The file is deleted if it is a relatively large file. However, if the last file in the list is a very small file, for example about 2 kilobytes (KB), all the files are moved over successfully.

RESOLUTION

To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

Hotfix

NOTE: The following hotfix was created prior to Microsoft SQL Server 2000 Service Pack 1.

The English version of this fix should have the following file attributes or later:
   File name
   ------------

   s80272i.exe
				
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 2000. Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.

MORE INFORMATION

When you use an FTP task in DTS, the only way you can add files is by using the GUI. The files are listed in alphabetical order and are moved over in the alphabetical order sequence.

For example, suppose you have four files that you want to move over from the FTP server. The four files are named:
  • a.txt - 100 MB
  • b.txt - 10 MB
  • c.txt - 2 KB
  • d.txt - 3 MB
In the FTP task when you add the files from the FTP server, the files are added in this order:
  • a.txt
  • b.txt
  • c.txt
  • d.txt
When you run this package, the package completes execution successfully. But, you can see the last file "d.txt" being deleted from the destination folder. If you rename the "d.txt" file to "ab.txt", and you then you re-add the four files in the FTP task, the last file in the list is "c.txt" (2 KB). Now, if you run the package, all four files are moved over.

If you are moving only one file, and if the size of the file is relatively large, like 3 MB, the file is deleted from the destination folder as soon as the package completes execution.

Modification Type:MajorLast Reviewed:11/5/2003
Keywords:kbBug kbfix kbSQLServ2000sp1fix KB288330