<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Grab field value from featureset based Select by Location results in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/grab-field-value-from-featureset-based-select-by/m-p/629176#M21021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this is the issue, but I'll throw it out there.&amp;nbsp; To add to what&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/4563"&gt;Duncan Hornby&lt;/A&gt;&amp;nbsp; suggested, what sort of database is the information coming from?&amp;nbsp; Depending upon which database is being used, one uses different formatting for the field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;EM&gt;Fields&lt;/EM&gt;&lt;/H2&gt;&lt;P&gt;&lt;EM&gt;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.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;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.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;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:&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;"AREA"&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;If you're querying personal geodatabase data, you can enclose fields in square brackets:&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;[AREA]&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;For personal geodatabase raster datasets, you should enclose field names in double quotes:&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;"AREA"&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;For File geodatabase data you can enclose your field names in double quotes, but it's generally not needed.&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;AREA&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm"&gt;Source:&amp;nbsp; SQL reference for query expressions used in ArcGIS—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, one Modelbuilder troubleshooting suggestion.&amp;nbsp; Open the model in &lt;EM&gt;Edit&lt;/EM&gt; Mode, &lt;EM&gt;Validate&lt;/EM&gt; it, then run it (still in &lt;EM&gt;Edit&lt;/EM&gt; Mode) by manually activating each step (Right-click on box, Run).&amp;nbsp; Hover over each completed box (has shadow) to see the values it produced.&amp;nbsp; This can help track down which step is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Oct 2017 16:58:15 GMT</pubDate>
    <dc:creator>ChrisDonohue__GISP</dc:creator>
    <dc:date>2017-10-05T16:58:15Z</dc:date>
    <item>
      <title>Grab field value from featureset based Select by Location results</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/grab-field-value-from-featureset-based-select-by/m-p/629174#M21019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm trying to figure out how to extract a value of records returned from a Select by Location model I built.&lt;/P&gt;&lt;P&gt;Here's the process (in bold, the parameters name as defined in the model its picture is attached to this post):&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The process starts with the execution of a 'Select by Location' tool, in which the user select a certain feature from a defined feature layer, (&lt;STRONG&gt;AttachGeometry&lt;/STRONG&gt;) using a featureset (&lt;STRONG&gt;InteractiveSelect&lt;/STRONG&gt;)- this part of the tool goes fine easily as a selection is evident after the model finishes its run.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I then use the 'Iterate Field Values' tool over the returned feature(s) (&lt;STRONG&gt;SelectedLocations&lt;/STRONG&gt;), aiming at garbing the unique value (&lt;STRONG&gt;DocID&lt;/STRONG&gt;) for a specific field - this is where, as I suspect, my problem, as no value is 'transferred' to the next step of the process.&lt;/LI&gt;&lt;LI&gt;This value is then transferred (as In line parameter, as can be see in the picture attached to this post) to a 'Select by Attribute' tool, for retrieving the matching records in another &lt;STRONG&gt;table&lt;/STRONG&gt;, based on this value&lt;/LI&gt;&lt;LI&gt;The process ends when the selected records are exported as a new table (Results).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As noted above, the '&lt;SPAN&gt;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&amp;nbsp;the following message for the exported records: 'WARNING 000117: Warning empty output generated'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help will be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Gal&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 14:55:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/grab-field-value-from-featureset-based-select-by/m-p/629174#M21019</guid>
      <dc:creator>GalAvraham</dc:creator>
      <dc:date>2017-09-27T14:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Grab field value from featureset based Select by Location results</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/grab-field-value-from-featureset-based-select-by/m-p/629175#M21020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be it is the&amp;nbsp;Select By Attribute that is failing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Things to check:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does&amp;nbsp;the field populating &lt;EM&gt;DocID&lt;/EM&gt; actually contain any data?&lt;/LI&gt;&lt;LI&gt;If it does are they sensible values, for example geomGUID has ID values ABC and docID is returning 123&lt;/LI&gt;&lt;LI&gt;Your expression implies that geomGUID field is a string field is that correct?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/grab-field-value-from-featureset-based-select-by/m-p/629175#M21020</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2017-10-05T16:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Grab field value from featureset based Select by Location results</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/grab-field-value-from-featureset-based-select-by/m-p/629176#M21021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this is the issue, but I'll throw it out there.&amp;nbsp; To add to what&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/4563"&gt;Duncan Hornby&lt;/A&gt;&amp;nbsp; suggested, what sort of database is the information coming from?&amp;nbsp; Depending upon which database is being used, one uses different formatting for the field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;EM&gt;Fields&lt;/EM&gt;&lt;/H2&gt;&lt;P&gt;&lt;EM&gt;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.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;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.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;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:&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;"AREA"&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;If you're querying personal geodatabase data, you can enclose fields in square brackets:&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;[AREA]&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;For personal geodatabase raster datasets, you should enclose field names in double quotes:&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;"AREA"&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;For File geodatabase data you can enclose your field names in double quotes, but it's generally not needed.&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;AREA&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm"&gt;Source:&amp;nbsp; SQL reference for query expressions used in ArcGIS—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, one Modelbuilder troubleshooting suggestion.&amp;nbsp; Open the model in &lt;EM&gt;Edit&lt;/EM&gt; Mode, &lt;EM&gt;Validate&lt;/EM&gt; it, then run it (still in &lt;EM&gt;Edit&lt;/EM&gt; Mode) by manually activating each step (Right-click on box, Run).&amp;nbsp; Hover over each completed box (has shadow) to see the values it produced.&amp;nbsp; This can help track down which step is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:58:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/grab-field-value-from-featureset-based-select-by/m-p/629176#M21021</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2017-10-05T16:58:15Z</dc:date>
    </item>
  </channel>
</rss>

