Flat File Source Editor

  • Hi all!

    I'd like to know if it is possible through SSIS to avoid errors when a flat file does not exist and the package tries to load it.

    I did not find anything about this topic..must I first search the file through script and then load the file or is there a more suitable solution?

    Thanks!

  • If you know that the file will exist at run time and you're just avoiding design-time validation errors, set DelayValidation = True.

    If you want a package to run successfully regardless of whether the source file is present, put your dataflow inside a foreach loop container.

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • Thanks for your reply. I want to avoid problems in case the file is not there.

    But the for each solution is not applicable, since there are many files and their load must be sequential...

  • OK - what do you want to happen if some of the files are present and some are not? Import them, or not import anything?

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • I want the flat file source component to be skipped if the file is not there 🙂

    is it possible?

  • So I am assuming that you have multiple dataflows, connected in some logical order. You want each of the dataflows to finish successfully if the source file is not found, continuing to the next.

    I am thinking that a combination of scripting, setting appropriate variables and using precedence constraints would be the way to go. There's no simple setting to achieve this, unfortunately - would be useful.

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • Ok, that's what I wanted to know!

    thanks!

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply