I'm trying to figure out how to extract a value of records returned from a Select by Location model I built.
Here's the process (in bold, the parameters name as defined in the model its picture is attached to this post):
As noted above, the 'Iterate Field Values' returns no values, thus no selection is made when the 'Select by Attribute' section of the model is executed - a new table is created, with no records in it. I receive the following message for the exported records: 'WARNING 000117: Warning empty output generated'.
Any help will be appreciated.
May be it is the Select By Attribute that is failing?
Things to check:
Not sure if this is the issue, but I'll throw it out there. To add to what Duncan Hornby suggested, what sort of database is the information coming from? Depending upon which database is being used, one uses different formatting for the field names.
To specify a field in an SQL expression, provide a delimiter if the field name would otherwise be ambiguous, such as if it were the same as an SQL reserved keyword.
Since there are many reserved keywords, and new ones can be added in subsequent releases, a good practice is to always enclose a field name with a delimiter.
Field name delimiters differ from DBMS to DBMS. If you're querying any file-based data, such as a file geodatabase, ArcSDE geodatabase data, or data in an ArcIMS feature class or image service sublayer, you can enclose field names in double quotes:
If you're querying personal geodatabase data, you can enclose fields in square brackets:
For personal geodatabase raster datasets, you should enclose field names in double quotes:
For File geodatabase data you can enclose your field names in double quotes, but it's generally not needed.
Also, one Modelbuilder troubleshooting suggestion. Open the model in Edit Mode, Validate it, then run it (still in Edit Mode) by manually activating each step (Right-click on box, Run). Hover over each completed box (has shadow) to see the values it produced. This can help track down which step is failing.
Chris Donohue, GISP