<?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: Model Builder select by inline variable substitution using like %value% in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-select-by-inline-variable/m-p/1537078#M88113</link>
    <description>&lt;P&gt;I have a similar situation and what appears to be incorrect result.&amp;nbsp; My model iterates field values on feature class A. In the same model I have select by attributes on feature class B.&amp;nbsp;&amp;nbsp;I used the Calculate Value tool to create an additional variable, that simply adds a 9 to the front of the Value variable.&amp;nbsp; My expression is&lt;BR /&gt;&lt;EM&gt;field&lt;/EM&gt;&amp;nbsp;LIKE %Value% AND &lt;EM&gt;field&lt;/EM&gt;&amp;nbsp;NOT LIKE %Remove% (I have to remove 5 digit values beginning with 9 from the selection from their similar 4 digit values without the leading 9).&amp;nbsp; When I "manually" create this expression, it works.&amp;nbsp; When I try to run with the iterator, it ignores the "remove" logic and selects more features than to be expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GarrettMelvin_0-1725997299882.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114735i2A3E7A5E9837E107/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GarrettMelvin_0-1725997299882.png" alt="GarrettMelvin_0-1725997299882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 20:22:25 GMT</pubDate>
    <dc:creator>GarrettMelvin</dc:creator>
    <dc:date>2024-09-10T20:22:25Z</dc:date>
    <item>
      <title>Model Builder select by inline variable substitution using like %value%</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-select-by-inline-variable/m-p/450328#M19823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am stuck. Have Model Builder selecting features by attributes using text string which is a variable. I need to use LIKE operator (I use 'contains the text' from the drop-down list) but this gives me empty result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LIKE '%\%rname\%%' ESCAPE '\'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rname&lt;/STRONG&gt; is my variable name. I select a feature class form file geodatabase. No error but empty result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using the same tool 'manually' it selects what I expect, it gives empty output in model builder. It looks like is does not substitute %rname% with a variable value..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2020 15:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/model-builder-select-by-inline-variable/m-p/450328#M19823</guid>
      <dc:creator>BartłomiejGajc</dc:creator>
      <dc:date>2020-07-08T15:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder select by inline variable substitution using like %value%</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-select-by-inline-variable/m-p/1537078#M88113</link>
      <description>&lt;P&gt;I have a similar situation and what appears to be incorrect result.&amp;nbsp; My model iterates field values on feature class A. In the same model I have select by attributes on feature class B.&amp;nbsp;&amp;nbsp;I used the Calculate Value tool to create an additional variable, that simply adds a 9 to the front of the Value variable.&amp;nbsp; My expression is&lt;BR /&gt;&lt;EM&gt;field&lt;/EM&gt;&amp;nbsp;LIKE %Value% AND &lt;EM&gt;field&lt;/EM&gt;&amp;nbsp;NOT LIKE %Remove% (I have to remove 5 digit values beginning with 9 from the selection from their similar 4 digit values without the leading 9).&amp;nbsp; When I "manually" create this expression, it works.&amp;nbsp; When I try to run with the iterator, it ignores the "remove" logic and selects more features than to be expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GarrettMelvin_0-1725997299882.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114735i2A3E7A5E9837E107/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GarrettMelvin_0-1725997299882.png" alt="GarrettMelvin_0-1725997299882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 20:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/model-builder-select-by-inline-variable/m-p/1537078#M88113</guid>
      <dc:creator>GarrettMelvin</dc:creator>
      <dc:date>2024-09-10T20:22:25Z</dc:date>
    </item>
  </channel>
</rss>

