Using Variables

Variables are used to pass information between objects. For example, SQL script has failed and you would like to email the SQL to the developer. Insert <sql> Into email message and it will be replaced with actual SQL

Before any object is executed the variable is replaced with the actual value

“Before any object is executed the variable is replaced with the actual value”, this statement is essential.

When execution starts variable <Email> does not exist

When the “select '<Email>' as Email” is executed the first time everything works as expected, the email is sent ETC.

However, when it is executed the second time '<Email>' is replaced with an actual variable value. (remember “before any object is executed the variables are replaced with the actual value”)

so instead of “select '<Email>' as Email”

“select 'VariableValue' as Email” is executed

The solution to this problem is straightforward. Put another set variable after “Send an email action” and set <Email> to <Email>

There are several ways to create variables

  1. Using script action
  2. Using transformation action
  3. Using calculation object within transformation action
  4. Using Set Variable Action
  5. Using Global Variables


<Project Name>
<Project ID>
<Package Name>
<Package ID>
<Package Group>
<Package Item Log Name> <Current Package Item Name>
<Actual Execution Status>
<Execution Status>

<Main Package Log Name>
<Package Item Log Name>
<Rejected Records File Name>




<Repository Connection String>


Every Action has a predefined set of variables

Once action execution is completed values are assigned to enabled variables

For more technologies supported by our ETL Software see Advanced ETL Processor Versions and Visual Importer ETL Versions

Confused? Ask question on our ETL Forum

  • aetle/packages/variables.txt
  • Last modified: 26/09/2022 05:40
  • by admin