1

Something funky has happened to your newline characters (ie, \n). The \ has been escaped with another \, so instead of a newline, you're getting \\n. Replace every instance of \\n with a \n newline (ie, delete one of the \ from each. It is using the newline character escape sequence \n rather than actual newlines, because it is a separate 'script-within-a-...


1

You can use Calculate Value (from model only tools) to get this value. If you put this python expression in Expression argument, %Name%[:2], it should give the first two letters of the Name in-line variable in a new variable, output_value by default. Then you can introduce this into your query builder as in-line variable, for example, "st_abbrv" = '%...


1

You need to connect the output "anomaly" to a make feature layer tool that becomes the input to the select layer by attribute tool. You need to do this because that tool takes as input a feature layer the output of the iterator is a feature class which is a very different type of object.


1

Everything flowing into the iterator needs to run once. But as EVERYTHING runs as many times as an iterator loops then EVERYTHING is running... Not what you want. The iterator and everything downstream of it needs to be in its only model and that sub-model connects to the output of the split by attribute. You could look at a help file or search this site ...


Only top voted, non community-wiki answers of a minimum length are eligible