The Dynamic Rename tool renames certain fields, all fields, or dynamic or unknown fields (at runtime) within an input data stream using different methods.
Use this tool when parsing text files, or if there is a pattern to the fields you want to rename such as: removing a prefix or suffix, or replacing underscores with spaces.
Often a field name will come from the first row of data or another description file that is only known at runtime.
Configuration properties change depending on the rename mode chosen. Choose the rename mode from the drop down list.
Rename modes include:
From the Properties section, type the text that will be the Prefix/Suffix for each selected field name.
Example: Field1, Field2, Field 3 are selected to be renamed using the first row of data:
Field 1 |
Field 2 |
Field 3 |
Address |
City |
ZIP |
3825 Iris Ave Suite 150 |
Boulder |
80301 |
The renamed fields and their corresponding data become:
Address |
City |
ZIP |
3825 Iris Ave Suite 150 |
Boulder |
80301 |
Use the drop down list to select the preferred reporting mode if the resulting number of field names do not match. Choices include: Warn, Error or Ignore.
Change field type and size optional check box, when checked will change the field type and size from the left input to match the R input.
Note: The records from the right side input do not come through, only the field names.
Use the drop down list to select the preferred reporting mode if the resulting number of field names do not match. Choices include: Warn, Error or Ignore.
Old Field Name from Column: Use the drop down list to select from the field list of the R input that includes the old field names, or what matches the field names from the L input.
Alternatively the selection Use Positional Rename will re-assign field names based on their row position in relation to the field position on the left.
New Field Name from Column: Use the drop down list to select from the field list of the R input that includes the new, replacement field names.
Field Name from Column: Use the drop down list to select from the field list of the R input that includes the old field names, or what matches the field names from the L input.
Alternatively the selection Use Positional Rename will re-assign field names based on their row position in relation to the field position on the left.
New Description Name from Column: Use the drop down list to select from the field list of the R input that includes the new, replacement Description values.
When using a right input for field names, be careful about the record order. A join or similar tool can change the order of records and you wouldn't want to associate the wrong field names with the wrong fields.
©2017 Alteryx, Inc., all rights reserved. Allocate®, Alteryx®, Guzzler®, and Solocast® are registered trademarks of Alteryx, Inc.