dbTalk Databases Forums  

Invalid string format for source file names

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Invalid string format for source file names in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tim L
 
Posts: n/a

Default Invalid string format for source file names - 12-28-2004 , 01:27 PM






I'm trying to pull files from an ftp site. Part of the file name is the
current date. I have put together an Active X script task to generate the
file name, but cannot get the dynamic properties task to use the generated
file name. I read that following the file name with 3 semi-colons (;;
would work, but that did not work in this case.

The general form of the file name is: Type_IDnum_mm-dd-yyyy.log.gz I have
the first part of the file name and the file extension in global variables; I
use a query to pull the date. The ActiveX Script concatenates the file name,
date, and extension into a global variable. I use the generated global
variable to set the file name property in the dynamic properties task.
Unfortunately, the file name comes up as "not displayable" and I get the
following error when I try to execute the package:

Invalid string format for source file names.

Any ideas?

Reply With Quote
  #2  
Old   
Nigel Rivett
 
Posts: n/a

Default RE: Invalid string format for source file names - 01-02-2005 , 03:05 AM






Why not do it from a stored procedure - it's easier and you have the command
file to check or develop independantly
see

http://www.mindsdoor.net/#FTP

"Tim L" wrote:

Quote:
I'm trying to pull files from an ftp site. Part of the file name is the
current date. I have put together an Active X script task to generate the
file name, but cannot get the dynamic properties task to use the generated
file name. I read that following the file name with 3 semi-colons (;;
would work, but that did not work in this case.

The general form of the file name is: Type_IDnum_mm-dd-yyyy.log.gz I have
the first part of the file name and the file extension in global variables; I
use a query to pull the date. The ActiveX Script concatenates the file name,
date, and extension into a global variable. I use the generated global
variable to set the file name property in the dynamic properties task.
Unfortunately, the file name comes up as "not displayable" and I get the
following error when I try to execute the package:

Invalid string format for source file names.

Any ideas?

Reply With Quote
  #3  
Old   
Tim L
 
Posts: n/a

Default RE: Invalid string format for source file names - 01-04-2005 , 04:39 PM



I was finally able to get this to work (the way I was trying it) by assigning
the file name to another global variable and using the new golbal variable in
the dynamic properties task.

Having said that, I appreciate the advice on using a stored procedure and
will investigate that as a longer-term, more elegant solution.

Thanks!

"Nigel Rivett" wrote:

Quote:
Why not do it from a stored procedure - it's easier and you have the command
file to check or develop independantly
see

http://www.mindsdoor.net/#FTP

"Tim L" wrote:

I'm trying to pull files from an ftp site. Part of the file name is the
current date. I have put together an Active X script task to generate the
file name, but cannot get the dynamic properties task to use the generated
file name. I read that following the file name with 3 semi-colons (;;
would work, but that did not work in this case.

The general form of the file name is: Type_IDnum_mm-dd-yyyy.log.gz I have
the first part of the file name and the file extension in global variables; I
use a query to pull the date. The ActiveX Script concatenates the file name,
date, and extension into a global variable. I use the generated global
variable to set the file name property in the dynamic properties task.
Unfortunately, the file name comes up as "not displayable" and I get the
following error when I try to execute the package:

Invalid string format for source file names.

Any ideas?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.