The Database Loop Action iterates through database records, assigning values to variables based on the field names.
Data Example
Metadata tab
The Write Variables option ensures that the “Package Action” logs the variable values into the “Action vars before log file” before the action is executed and logs the updated variable values into the “Action vars after log file” after the action completes.
This option is typically used for debugging and is not recommended in a production environment.
It can be globally disabled through the
options dialog
.
Parameters tab
Tip: When the “UseEmbeddedSQL” is set to True EmbeddedSQL is used, otherwise SQL Script/Lookup is used.
Resuming Loop Execution After Failure
When Resume Loop is true current loop position value is saved into Loop Position File automatically
The same file is used to resume file execution after failure
Upon successful completion the Loop Position File is deleted
Selecting Connection
Tip: Connection details can be amended by clicking Edit button.
Selecting Source Script/Lookup
Tip: Source details can be amended by clicking Edit button.
Editing Script
Variables tab
The Variables tab defines the variables to be updated during the action’s execution.
Tip: double click on the variable name to disable/enable it
Execution log tab
The Execution log tab is populated after the action is executed. Double click on the row to view the log.