bypass a non existing server

  • I have an execute task(has server list from a table) pointing to foraeachloop

    foreachloop has dataflowtask which has oledb source and oledb destination

    Everything runs fine as long the servers are available.

    In case a server is removed and still exists in the execute task (table) the package fails.

    How can I bypass a non existing server in the Server table

    Thanks

     

  • Here is one way. There may be more elegant ways, but I'm short on coffee at the moment.

    • Create an SSIS variable 'ConnectionOK', or similar.
    • Add a script task before the data flow (but within the foreach container) which tests the connection and sets the SSIS variable depending on the connection status. There are several examples of the code needed to do this available if you do a search.
    • Finally, add a suitable (expression + constraint) precedence constraint between this task and the data flow, such that the data flow does not get executed if the ConnectionOK variable has been set to 'No' (or whatever).

    • This reply was modified 1 month, 1 week ago by  Phil Parkin.

Viewing 2 posts - 1 through 1 (of 1 total)

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