Solved

FTP DTS Task Deleting File Upon Completion

Posted on 2003-10-21
10
166 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
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.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

717 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