If you do not use the %Name% variable in the output dataset path, the same dataset path will be used for each iteration, resulting in each iteration overwriting the output of the previous iteration. If the value is a path to a dataset, only the dataset name is used. If the value in the batch parameter contains spaces or special characters, they are replaced with an underscore. The %Name% variable is replaced by the value in the batch parameter during each iteration. It can be manually added to other parameters that should use dynamic naming. The %Name% variable is automatically included in every output dataset parameter. When running a tool in batch mode, the naming of the tool's output datasets must receive special consideration so that a unique name is used for every iteration of the batch tool.īatch tool outputs are dynamically named using the %Name% variable in output parameters. Most geoprocessing tools create an output dataset. Each of the six selected input tables will have the StateName field added. Conversely, the Batch Add Field tool, on the right, supports multiple input tables. The Add Field tool, on the left, only supports one input table. Enter the new field name, type, and any other desired parameter settings.For the Batch Input Table parameter, browse to and select any dataset which should have the new field added.Select Input Table as the batch parameter and click Next.Right-click the Add Field tool and select Batch.Each value that you enter for this batch parameter will result in an additional iteration of the tool to run within the batch.įor example, to add a field with the same name to several datasets, perform the following steps: One important difference is that the parameter you selected as the batch parameter will now have a Batch prefix on the parameter label and will support specifying multiple values. The parameters displayed on the batch tool will closely match the normal version of the tool. If you wish to run a large batch with many iterations, you can uncheck this option so that a large number of layers are not added to the map.Īfter completing the steps above, a batch version of the geoprocessing tool will open in the Geoprocessing pane, where you can specify the tool parameters and run it. Choose whether the batch tool should Add output datasets to an open map.The batch tool is a new model tool that is created programmatically and uses a ModelBuilder iterator to perform batch processing. If you choose to save it, you can specify the new batch tool name and the toolbox where it will be saved. Choose if the batch tool should be temporary or saved.Some input parameters are not supported as batch parameter, including all Boolean (check box) parameters, Field Map parameters, Value Table parameters, and parameters that accept multiple values. If you select the parameter Distance as the batch parameter, you can specify multiple distances and the batch tool will run once for each distance, using the same input dataset each time. If you select the parameter Input Dataset as the batch parameter, you can specify multiple input datasets and the batch tool will run once for each input dataset, using the same distance for each input dataset. The first input parameter is selected by default.Ĭonsider the following example of a tool that has two input parameters: Input Dataset and Distance. The batch parameter choicelist only includes the tool's input parameters. The batch tool will run once for each of the datasets or values you provide as input to the batch parameter. The batch parameter is designated to accept multiple datasets or values as input. Choose which of the parameters of the selected tool which will drive the batch process-the batch parameter.If the Batch command is disabled the tool does not support batch mode.Īfter selecting the Batch mode, a page opens in the Geoprocessing pane for you to define various options for the batch geoprocessing tool. Right-click the tool and select Batch.Find the geoprocessing tool you want to use.To open and run a tool in batch mode, do the following: Tools that create map layers, such as Make Feature Layer and Make Raster Layer.Tools that process multiple input datasets, such as Intersect and Merge.Most notably, the following types of tools do not support batch: Not all geoprocessing tools support batch mode.