Using Precedence Constraint Editor to control the task execution in Control Flow (SSIS)

19 Mar

Nishant Rana's Weblog

Precedence Constraint component in SSIS allows us to control the flow of the execution of tasks within the Control Flow.

Suppose we have the below package wherein we are traversing through the folder using Foreach Loop Container and are processing XML and docx files within that folder.

And we want them to be processed differently.

We have the following user-defined variables specified.

Within the Script Task, we have specified FilePath as the ReadOnlyVariables to read the full file path and figure out the extension and FileExtension as the ReadWriteVariables to which we will write the result.

Below is our code for the Script Task, here we are reading the file path and getting the extension and setting the FileExtension variable.

Now back in our control flow, open the Precedence Constraint Editor and select Evaluation expression as Expression and Constraint.

The constraint should be success and for the expression, we have…

View original post 66 more words

Leave a comment

Posted by on March 19, 2019 in Uncategorized


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This is your site about D365 (Finance and Supply Chain Management), IoT (Internet of Things) and HoloLens

Omni 365

Dynamics 365 Finance and Operations Blog

DIY D365

Power Platform Done Your Way

Azure Integration for Dynamics 365

Azure Integration for Dynamics 365 Unified Operations, Logic Apps, Azure Functions, REST

Birger Larsen - AX / Dynamics 365 blog on WMS

WMS, Distribution, Logistics, Birger, Larsen, AX, 2012, WAX, TRAX, Dynamics 365

Rizwan Ahmed

Microsoft Dynamics 365, Commerce, Solution architect, helping clients achieve operational excellence.


Dynamics 365, Business Applications, and Me!

Dynamics Journal

A blog on Dynamics 365 for Operations - Retail

Middleware In The Cloud

Blog focused on Microsoft Middleware running in the cloud. Content provided by Kent Weare

Ryan Maclean

My low-code approach to CRM development

Debajit's Power Apps & Dynamics 365 Blog

All about Power Apps & Dynamics

Rajpal's view on D365FO

Enhance your D365FO skills, leave your valueable feedback and suggestions

vmoskalenko blog

D365FO, AX, Windows, Azure

Brett McKenzie

.NET, Azure, and Office dev

Ajit Patra

Microsoft Technologies and Dynamics 365 Blogs

%d bloggers like this: