SSIS (2005) Create new flat file on run from OLE connection

How do I get SSIS to CREATE a new file in the DataFlow.

I have variables and dynamic filename and path set in an expression it's parsing ok.

But at runtime its saying  it can't find the file.
Of course it can't...it's not created yet!

Capture.JPG
Larry Bristersr. DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
>Of course it can't...it's not created yet!
On the connection object go to Properties, and set the Delay Validation property to True.
Also in the data flow, destination task, set the Validate External Metadata property to False.
0
Larry Bristersr. DeveloperAuthor Commented:
Jim Horn,
  I tried that...but same thing

I'm showing evrthing in the series of screen prints below

This is the dynamic folder / file path.
The TOP row of the validated folder exists.
The second line is the dynamic part.
SP

This is the flat file connection manager setting
SP3
Here's the Data Flow setting for Metadata
SP4
0
SThayaTechnical MAnagerCommented:
Hi ,

  i think the problem with the Validate External Metadata  property. do the below steps

1.create an empty text file in your drive and connect the txt file with your destination

2. do the mapping process
3. just check wheather the txt file is accepting the incomming rows from the source.

if the above step is Success . then do the jimhorn steps (dynamice connection string)....hope this will help
0
Larry Bristersr. DeveloperAuthor Commented:
Hey guys...found my own answer.

I added a create directory task at the very start.

I then set the value to my User::strFolderName variable
Viola!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Larry Bristersr. DeveloperAuthor Commented:
FOund my own answer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.