Solved

FTP DTS Task Deleting File Upon Completion

Posted on 2003-10-21
10
165 Views
Last Modified: 2008-03-04
I have created a SQLServer DTS script to retrieve and process a file located on an IIS FTP server.  

The FTP step of the process seems to be working as expected, but it deletes the file once it has been fully downloaded.  It does not generate an error, and if you watch the destination directory you see the file created, populated, and then deleted.  I have another FTP that is working as expected.

This is obviously throwing a big 'ole monkey wrench into the rest of the processing.  Has anyone seen this before?  I am fairly new to the FTP Task, so I really hope it is a matter of me doing something stupid and not an inherent problem!

Kevin
0
Comment
Question by:kevintblack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 2
10 Comments
 
LVL 34

Expert Comment

by:arbert
ID: 9617385
Usually, the FTP process with delete the file if it WASN'T successful.  Are you totally positive it's not timing out or something and aborting?  Can you look at the IIS log to see if the transfer was successful?  If you execute the SAME ftp command from a "dos" prompt, what happens?
0
 

Author Comment

by:kevintblack
ID: 9626784
The FTP process is returning 'success', and follows the path I expect it to follow after a successful download.  It should terminate the DTS package when it fails.  That is not happening.

I did check the IIS log before, and it reports a successful download every time it is run.

The DOS FTP works as expected.
0
 
LVL 34

Expert Comment

by:arbert
ID: 9628602
Weird.  You don't have any other automated processes that cleans up that folder do you?  Any other steps in the DTS package that deletes the file when it's done?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:kevintblack
ID: 9628836
No.

If I run the Step as a stand-alone process, it does the same thing.  It downloads the file, deletes it, and returns a successful completion.  There aren't a lot of settings I can tweak either.  I'm stuck.

0
 
LVL 34

Expert Comment

by:arbert
ID: 9639521
Ya, I'm at a loss too.  I assume you have the right permissions or it wouldn't even create the file in the first place--you are FTPing from DTS with the same account/password that you used to test from the command line right?
0
 

Author Comment

by:kevintblack
ID: 9686760
Sorry, I've been out of town.  Yes, same password.

0
 

Expert Comment

by:chris0000lee
ID: 11034721
I'm running into the same problem have you found an answer yet?
0
 

Author Comment

by:kevintblack
ID: 11034799
No.  I have never been able to fix the problem.  I reworked my process to shell out and perform an FTP.  It isn't as slick, but at least it works.  I left this question open hoping someone else might eventually have an answer.  As you can see, I haven't gotten much feedback.  I spent a lot of time trying to track it down in other forums too - no luck though.
0
 
LVL 34

Expert Comment

by:arbert
ID: 11034968
Ya, this really should be closed since it's over 21days old--requeste a DELETE/REFUND in the CS area with a link to this question.
0
 

Accepted Solution

by:
chris0000lee earned 250 total points
ID: 11035226
I figured it out...Update to Service pack 3a..It fixed the problem.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question