<?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 Date Parameter not working in Select By Attribute SQL in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/date-parameter-not-working-in-select-by-attribute/m-p/1709433#M4152</link>
    <description>&lt;P&gt;I'm trying to filter within my model so that I only append data that has been created after the last time the model was ran. Within my original data, I have an auto-populating field of "CreationDate" and I have created a Date type parameter that is titled "date_last_ran".&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I enter the following expressions into the Select By Attribute expression, all receive the error "The SQL expression has invalid syntax," and I cannot figure out why.&lt;/P&gt;&lt;P&gt;CreationDate &amp;gt; %date_last_ran%&lt;/P&gt;&lt;P&gt;CreationDate &amp;gt; '%date_last_ran%'&lt;/P&gt;&lt;P&gt;CreationDate &amp;gt; date '%date_last_ran%'&lt;/P&gt;&lt;P&gt;Any help is appreciated!&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>Tue, 23 Jun 2026 22:22:36 GMT</pubDate>
    <dc:creator>MKRichter</dc:creator>
    <dc:date>2026-06-23T22:22:36Z</dc:date>
    <item>
      <title>Date Parameter not working in Select By Attribute SQL</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/date-parameter-not-working-in-select-by-attribute/m-p/1709433#M4152</link>
      <description>&lt;P&gt;I'm trying to filter within my model so that I only append data that has been created after the last time the model was ran. Within my original data, I have an auto-populating field of "CreationDate" and I have created a Date type parameter that is titled "date_last_ran".&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I enter the following expressions into the Select By Attribute expression, all receive the error "The SQL expression has invalid syntax," and I cannot figure out why.&lt;/P&gt;&lt;P&gt;CreationDate &amp;gt; %date_last_ran%&lt;/P&gt;&lt;P&gt;CreationDate &amp;gt; '%date_last_ran%'&lt;/P&gt;&lt;P&gt;CreationDate &amp;gt; date '%date_last_ran%'&lt;/P&gt;&lt;P&gt;Any help is appreciated!&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>Tue, 23 Jun 2026 22:22:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/date-parameter-not-working-in-select-by-attribute/m-p/1709433#M4152</guid>
      <dc:creator>MKRichter</dc:creator>
      <dc:date>2026-06-23T22:22:36Z</dc:date>
    </item>
  </channel>
</rss>

