The goal of my project is to create a table with two fields. The first field showing a county name and the second field listing every county that touches the boarder of the county listed in the first field.
I am attempting to do this in ModelBuilder or Python. In ModelBuilder, I use the Iterate Feature Selection Iterator to select each county in the shapefile. This creates two outputs, Value and Selected Features. I then use the Selected Features output to make my Select by Location. Next, I use the model only tool Get Field Value. The hope is that this will get the field values of the NAME field in my attribute table for all of the selected features. Finally, I am using the Calculate Field tool to add the names of all the boundary counties.
The problem with using the Selected Features output is that it isn't actually just selecting a county it is creating a temporary feature layer of just that county. So when attempting to make a select by location there is nothing else to select from.
The problem with using the Get Field Value tool is that is only selected the first field value in the table, rather than selecting all the values in the NAME field.
Does anyone know how I can fix these issues? Is this process even possible in ModelBuilder?