?
Solved

Setting DTS FTP SourceFileName property with Dynamic Properties task

Posted on 2004-03-30
7
Medium Priority
?
608 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 2000 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
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…
Suggested Courses

770 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