[GIS] Nesting two iterators for cost distance calculation in ModelBuilder

arcgis-desktoperror-000865iteratormodelbuilder

I am attempting to calculate cost distances iteratively for each point element in different datasets.

I created a model that does the job for a single dataset but when I try to batch it I'm getting the following error "ERROR 000865: Input raster or feature source data: I_atlanta_OBJECTID does not exist".

This is, the output layer generated in the "feature select" submodel is not a valid input in the cost distance or in any other process I put after the iterator.

This error occurs only when I nested the model to run it in different datasets and not when I run the model in only one dataset.

snapshot of the model

Is there any consideration I have to take into account when nesting models?

I have read the documentation available with no luck so far.

Best Answer

The ArcGIS help page for iterators in model builder says that you can only have one iterator per model. (It's the first note, below the table of iterator types.) Perhaps that is why you are having trouble trying to use two in the same model.

I believe if you want to use multiple iterators in modelbuilder you have to build a model for each one and then nest those models inside another one.

Related Question