The Rename Sheet Package Action is a crucial feature within automated workflows that allows for the seamless renaming of Excel sheets within a workbook. This action is particularly useful when managing dynamic Excel files, where sheets need to be renamed to reflect changes in data, project phases, or reporting periods. Automating the renaming of sheets ensures accuracy, consistency, and organization in Excel workbooks, making it easier to navigate and manage information efficiently.
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
To minimize potential issues, avoid using mapped drives and opt for the UNC (Universal Naming Convention) path instead. Mapped drives can lead to problems with accessibility and permissions, especially in networked environments or automated processes. UNC paths provide a direct, reliable way to reference network resources without relying on local drive letters, ensuring better stability and consistency across different systems and users.
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.
Example: Calculated Excel File Name
Pascal
Script
begin
Result:='c:\support\'+LeftString(GETSYSTEMVARIABLE('SYSTEM_DATE'),8)+'.xlsx';
end;
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
We have more videos on ETL-Tools.com YouTube Channel,
Please take a look and subscribe to stay updated with the latest content.