I am using an Iterator to Iterate through a list of Strings for Feature Selection/Aggregation/Count. There is the possibility that no Features are aggregated. In this case, I want the iterator to go to the next %String%. However, in such a situation, the model runs as follows:
- Executing (Iterate Field Values): IterateFieldValues …
- Succeeded …
- Executing (Select): Select … Data.shp in_memoryTagFeaturesSelect … LIKE ‘%;seo;%’ – …
- Executing (Get Count): GetCount in_memoryTagFeaturesSelect
- Row Count = 11
- Executing (Calculate Value): CalculateValue check(11) “def check(rowcount)… Boolean
- Value = true
- …
- Executing (Aggregate Points): AggregatePoints in_memoryTagFeaturesSelect …
- Finding point clusters…
- Constructing polygons…
- …
- Executing (Get Count 2): GetCount C:1_TOOLSIntermediateSelTaglocationsAgg.shp
- Row Count = 0
- The process did not execute because the precondition is false.
- Succeeded at …
- Executing (Spatial Join): SpatialJoin …SelTaglocationsAgg.shp in_memoryTagFeaturesSelect …output_seo.shp …
- Start Time: …
- All the inputs are not current.
- Succeeded at …
- Executing (Spatial Join (3)): …
- Start Time: …
- All the inputs are not current.
- Succeeded at …
- Executing (Summary Statistics): …
- Start Time: …
- All the inputs are not current.
- Succeeded at …
…
This is the Model I am talking about:
I also tried using Calculate Value with result = false for Row Count = 0, but the same result. The Model also ignores whether I set [Row Count 2] as a precondition for [Spatial Join (3)] or not.
My model still continues, but I get all the errors and I believe, this is not by intention?