<?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: Inline Variable Substitution in SQL Expression Variable Using Model Parameter Value ArcGIS PRO in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/inline-variable-substitution-in-sql-expression/m-p/1562196#M27472</link>
    <description>&lt;P&gt;I never found a solution, and gave up a while back. Thanks for your input though!&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2024 14:17:06 GMT</pubDate>
    <dc:creator>Gene_Sipes</dc:creator>
    <dc:date>2024-11-25T14:17:06Z</dc:date>
    <item>
      <title>Inline Variable Substitution in SQL Expression Variable Using Model Parameter Value ArcGIS PRO</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/inline-variable-substitution-in-sql-expression/m-p/1219906#M26507</link>
      <description>&lt;P&gt;I am trying to port over a model that I built in ArcMap, to Pro.&lt;/P&gt;&lt;P&gt;I am receiving a SQL error stating "fields do not match" when trying to set up a SQL Expression for use in the Select Layer By Attributes tool. The SQL Expression is connected to the Select by Attributes Tool, and attempts to use inline variable substitution to insert the model parameter value "SectorNumber" in the expression. The goal is to create a selection set of records from Centerline202.. that match Sector = %SectorNumber%.&lt;/P&gt;&lt;P&gt;Here is an overview of the model layout.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gene_Sipes_2-1665156766717.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53105i2D8A85FCF17B1672/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gene_Sipes_2-1665156766717.png" alt="Gene_Sipes_2-1665156766717.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is a screenshot showing a valid SQL message when using a hardcoded value of 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gene_Sipes_1-1665156741114.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53104iEB0BF2FBD464916B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gene_Sipes_1-1665156741114.png" alt="Gene_Sipes_1-1665156741114.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When trying to add the "SectorNumber" model parameter as an inline variable in the SQl Expression I get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gene_Sipes_3-1665156942856.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53106iAFD4D5FDBBCD71B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gene_Sipes_3-1665156942856.png" alt="Gene_Sipes_3-1665156942856.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried numerous versions of %SectorNumber%, "%SectorNumber%", (%SectorNumber%), and cannot get anything to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data is file based (FGDB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 15:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/inline-variable-substitution-in-sql-expression/m-p/1219906#M26507</guid>
      <dc:creator>Gene_Sipes</dc:creator>
      <dc:date>2022-10-07T15:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Inline Variable Substitution in SQL Expression Variable Using Model Parameter Value ArcGIS PRO</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/inline-variable-substitution-in-sql-expression/m-p/1561773#M27471</link>
      <description>&lt;P&gt;I'm having the same problem. It worked when I made the fields text though, using just (for example) ID = %Value%&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 16:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/inline-variable-substitution-in-sql-expression/m-p/1561773#M27471</guid>
      <dc:creator>britthartery</dc:creator>
      <dc:date>2024-11-22T16:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Inline Variable Substitution in SQL Expression Variable Using Model Parameter Value ArcGIS PRO</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/inline-variable-substitution-in-sql-expression/m-p/1562196#M27472</link>
      <description>&lt;P&gt;I never found a solution, and gave up a while back. Thanks for your input though!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 14:17:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/inline-variable-substitution-in-sql-expression/m-p/1562196#M27472</guid>
      <dc:creator>Gene_Sipes</dc:creator>
      <dc:date>2024-11-25T14:17:06Z</dc:date>
    </item>
  </channel>
</rss>

