Solved

Setting DTS FTP SourceFileName property with Dynamic Properties task

Posted on 2004-03-30
7
607 Views
Last Modified: 2010-07-27
Using a DTS package I am working on the ability for a client to upload a file to the web server. From the SQL server the DTS package will FTP the file from the web server and then pump the text file data into a table that will be used to verify data in another database table.

I am having difficulty setting the SourceFileName property for the FTP task in a DTS package. I believe I am using the correct format to set the property. Below is the SQL querry used in setting a global variable inside of a SQL Execute Task (SourceFileName).

SELECT TOP 1 OrgID,
 ''''+VerifyFileName+''''+';''e:\webs\dev.10kaday.com\admin\VerificationFiles\'';''50''' as SourceFileName,
 'e:\files\10kaday\VerificationFiles\'+VerifyFileName as DestinationFileName,
 'e:\files\10kaday\VerificationFiles'  as DestinationDirName
FROM tblVerifyOrgData
WHERE Complete <> 1

The global variable is then used in a Dynamic Properties task to set the SourceFileName property of the FTP Task. All Tasks are serially connected with On Completion Work Flow type.

The FTP task completes but there is no file. When viewing the property it appears to be set correctly after executing the package. The next Task fails which is a Transform Data Task that uses the Data Pump to pump data from the FTP'd text file to a db table.
0
Comment
Question by:kwallenbeck
[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
  • 3
  • 2
7 Comments
 
LVL 14

Expert Comment

by:adwiseman
ID: 10714465
Have you attempted to execute each step 1 step at a time, and review the results of each step?  by right clicking the task in enterprise manager you can execute it manualy.  Then check that the correct results occured.
0
 

Author Comment

by:kwallenbeck
ID: 10714531
Yes, I have completed this simple check. Although I question whether this will always provide a good check since the properties of tasks are generated dynamically.

Thank you for your reply.
0
 
LVL 14

Expert Comment

by:adwiseman
ID: 10714730
After executing the dynamic properties task, or the tasks that finaly set the properties.  Go into the properties window of that task and see that it was changed correctly.
0
 

Author Comment

by:kwallenbeck
ID: 10715041
After running the DTS package I have checked the properties of the FTP Task and the properties all appear to be set correctly. I manually set the FTP and ran the package and the FTP Task did work. I looked at the properties of the manually set FTP Task against the dynamically set FTP Task properties and they appear to be set correctly with the Dynamic Properties Task.  Althought the file does not get uploaded. I'm wondering if they get set too late in the process somehow.
0
 
LVL 14

Accepted Solution

by:
adwiseman earned 500 total points
ID: 10715812
the property needs to get set as soon as possible, and the ftp connection object can not be changed once it is used once.  Your not looping, or using the ftp connection for more than this one task?
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

724 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