SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


problems checking for files in SSIS


problems checking for files in SSIS

Author
Message
Matthew Cushing
Matthew Cushing
SSC Veteran
SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)

Group: General Forum Members
Points: 249 Visits: 421
I took at look at this component:
http://www.sqlis.com/23.aspx
and it's causing the same issue as this one:
http://dichotic.wordpress.com/2006/11/01/ssis-test-for-data-files-existence/

I have an excel file that I am trying to pick up and throw into a db. I am scheduling it for midnight every night, but if the file isn't there, I don't want to run the job.

in both cases if the file isn't there I get this:

TITLE: Package Validation Error
------------------------------

Package Validation Error

------------------------------
ADDITIONAL INFORMATION:

Error at Import Workstatons [Excel Source [1]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E37.

Error at Import Workstatons [Excel Source [1]]: Opening a rowset for "Workstations$" failed. Check that the object exists in the database.

Error at Import Workstatons [DTS.Pipeline]: "component "Excel Source" (1)" failed validation and returned validation status "VS_ISBROKEN".

Error at Import Workstatons [DTS.Pipeline]: One or more component failed validation.

Error at Import Workstatons: There were errors during task validation.

(Microsoft.DataTransformationServices.VsIntegration)

if the file is there, then it works just fine. Is there a way to not do the connection managers until after the script runs? I have it set so that the script runs and if it succeeds, it calls the data flow. I am not sure that is what is happening.

any ideas?
Peter Brinkhaus
Peter Brinkhaus
SSCrazy
SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)

Group: General Forum Members
Points: 2064 Visits: 7369
If you're using a data flow task to pick up the excel file and throw into a db, set the DelayValidation property of the data flow task to True. If the file isn't there the dataflow task wil not be validated since it will not run.

Peter
Matthew Cushing
Matthew Cushing
SSC Veteran
SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)

Group: General Forum Members
Points: 249 Visits: 421
I'm naming my next child Peter Smile Thanks for your help that was so frustrating and yet so easy to solve.

Thanks!
M@
saravanan_ma
saravanan_ma
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 42
Thanks a ton Peter. It helped me too. Smile
Florian Schmidt
Florian Schmidt
SSC Rookie
SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)

Group: General Forum Members
Points: 32 Visits: 10
I'm naming my next although child Peter Smile
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search