Files Loop Dynamic Action

About

The Files Loop Action iterates through the list of files, file name is assigned to #LoopValue# variable.

Metadata tab

Files Loop Action - Metadata tab
 

  1. 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.
  2. This option is typically used for debugging and is not recommended in a production environment.
  3. It can be globally disabled through the options dialog .

Parameters tab

Files Loop Action - Parameters tab

N Value Parameter

The meaning of N Value parameter depends on Which File Parameter

  1. When Which File Parameter is equal to “Files Not Older Than N Days” N Value is Days
  2. When Which File Parameter is equal to “Files Older Than N Days” N Value is Days
  3. When Which File Parameter is equal to “First N Found Files” N Value file number
  4. When Which File Parameter is equal to “Bigger Than N Bytes” N Value is byte

Resuming Loop Execution After Failure

  1. When Resume Loop is true current loop position value is saved into Loop Position File automatically
  2. The same file is used to resume file execution after failure
  3. Upon successful completion the Loop Position File is deleted

Variables tab

The Variables tab defines the variables to be updated during the action’s execution.

Files Loop Action - Variables tab

Execution log tab

The Execution log tab is populated after the action is executed. Double click on the row to view the log.

Files Loop Action - Execution log tab
  1. IMAP4 Email Loop Action
  2. Office 365 Email Loop Action
  3. File Loop Action
  4. Database Loop Action
  5. Down Loop Action
  6. Up Loop Action
  7. Json Object Loop Action
  8. Json Array Loop Action

Problem description

  • Excel files are received via email.
  • Each file contains only one sheet.
  • Sheet names vary.
  • The sheet must be renamed to “DATA”.

Solution

Since each file has only one sheet, the simplest approach is to to save list of sheets into a file, store it in a variable, and use ths variable as Old Sheet parameter

Video Tutorial




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

Confused? Ask question on our ETL Forum

Posted on June 19, 2025 • 3 min read • 472 words
www.etl-tools.com About Support Pricing Cookies Policy Term Of Use Privacy Policy License