ssis to check file exists at begin stage

nononono 1 Reputation point
2021-04-26T08:26:16.15+00:00

how can I define a variable to check the 2 excels files exists at beginning of ssid, if false , then return error, if exists , then go to green path to continue.

the path folder as below:
C:/SSIS

check 2 files:
input1.xls
input2.xls

variable: isFilesExists (boolean type)

any ssis set up for reference

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Monalv-MSFT 5,926 Reputation points
    2021-04-26T10:00:14.163+00:00

    Hi @nononono ,

    We can use Foreach Loop Container to check if the excel file exist.

    Then set the Precedence Constraints between Foreach Loop Container and the next task.

    Please refer to the following pictures:
    91311-cf.png
    91206-foreachloopcontainer.png
    91207-precedenceconstraint.png

    Best regards,
    Mona


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.