Solved

FTP DTS Task Deleting File Upon Completion

Posted on 2003-10-21
10
162 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
  • 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
 

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now