Iterate Tables (Model Tools)
Summary
Iterates over tables in a workspace.
Usage
This tool is only available from ModelBuilder for use in models. The tool is not available from the Geoprocessing pane or from Python.
The first table identified by the tool is used as a template for the output Table parameter. The tool reads information from this table, including the fields and the full path to the table. This allows for the selection of fields in the parameters of subsequent tools when initially setting up the model workflow. When the model is first run, the tool will use the information from the first table, and on subsequent runs, each table is individually read and the information is sent to the next tool.
The tool has two outputs, Table and Name, that can be used as inline variables (for example,
%Name%) in other tools.The tool works with many tabular file formats, including Excel files and comma-delimited text files (
.csvand.txt).
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Workspace |
A workspace containing the tables to iterate. |
Workspace |
|
Wildcard (Optional) |
A combination of |
String |
|
Table Type (Optional) |
Specifies the table type for folder workspaces (coverages).
|
String |
|
Recursive (Optional) |
Specifies whether subfolders in the main folder will be iterated recursively.
|
Boolean |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Table |
The full path to the table. |
Table |
|
Name |
The name of the table. |
String |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes