<?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: Date Filter not working in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-filter-not-working/m-p/1264244#M3909</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115391"&gt;@RJSunderman&lt;/a&gt;&amp;nbsp;Yes, I came across the blog of how to create temporal filter and hence, I was using $ReceivedTime expression though am not sure if this is the right way to go.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did try using the AND operator however, still running into the same issue.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Filter_AND.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64349i2F8487E0EE2BAC3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Filter_AND.PNG" alt="Filter_AND.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried using a &lt;STRONG&gt;Date&lt;/STRONG&gt;&amp;nbsp;field with AND operator however, in this case none of the records came through.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Filter_Field.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64350i3B65B9B3EC185934/image-size/large?v=v2&amp;amp;px=999" role="button" title="Filter_Field.PNG" alt="Filter_Field.PNG" /&gt;&lt;/span&gt;I am wondering could this happen because of the fact that in the date field there is date as well as time and do I need a separate field just for time. ]Here is snippet of data&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data.PNG" style="width: 757px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64352iD567903D0266476B/image-size/large?v=v2&amp;amp;px=999" role="button" title="data.PNG" alt="data.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am also attaching GeoEvent definition being used.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schema.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64351i1118B13BB20F29E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schema.PNG" alt="Schema.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Mar 2023 02:41:49 GMT</pubDate>
    <dc:creator>wizgis</dc:creator>
    <dc:date>2023-03-04T02:41:49Z</dc:date>
    <item>
      <title>Date Filter not working</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-filter-not-working/m-p/1263967#M3903</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the following input connector : &lt;STRONG&gt;Watch a Folder for New CSV&lt;/STRONG&gt; files and output connector of &lt;STRONG&gt;Add Feature&amp;nbsp;&lt;/STRONG&gt;in GeoEvent Server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now trying to configure a filter based on date field however, it's not working and the in and out count matches. Ideally, I am looking to get records which have been acquired during the day time like records between 5 AM to 5 PM.&lt;/P&gt;&lt;P&gt;Following is the screenshot of expression I have used :&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Filter_Expression.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64277i937F526D8A32200F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Filter_Expression.PNG" alt="Filter_Expression.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new to GeoEvent so not sure what exactly am I missing here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 14:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-filter-not-working/m-p/1263967#M3903</guid>
      <dc:creator>wizgis</dc:creator>
      <dc:date>2023-03-03T14:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Date Filter not working</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-filter-not-working/m-p/1264111#M3905</link>
      <description>&lt;P&gt;It looks to me like you're using what I refer to as the "algebraic expressions" Morakot describes in his blog&amp;nbsp;&lt;LI-MESSAGE title="How to Create Temporal Filter in GeoEvent" uid="903250" url="https://community.esri.com/t5/arcgis-geoevent-server-blog/how-to-create-temporal-filter-in-geoevent/m-p/903250#U903250" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&lt;/P&gt;&lt;P&gt;The way I read the filter you screenshot above, any event record whose received time is greater-than 1500 hours will be allowed to pass through as well as any event record whose received time is less than 1600 hours. All event records will satisfy that conditional.&lt;/P&gt;&lt;P&gt;I think this is more like what you want:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimeFilter_Response_Fig1.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64314iB000413A835814D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="TimeFilter_Response_Fig1.png" alt="TimeFilter_Response_Fig1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When you double-click to edit the filter you need to make sure you apply the logical condition &lt;FONT size="2" color="#993300"&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt;&lt;/FONT&gt; to the two expressions you have entered as the filter's criteria:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimeFilter_Response_Fig2.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64315i085DD15956AB8DD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="TimeFilter_Response_Fig2.png" alt="TimeFilter_Response_Fig2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 18:46:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-filter-not-working/m-p/1264111#M3905</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2023-03-03T18:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date Filter not working</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-filter-not-working/m-p/1264244#M3909</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115391"&gt;@RJSunderman&lt;/a&gt;&amp;nbsp;Yes, I came across the blog of how to create temporal filter and hence, I was using $ReceivedTime expression though am not sure if this is the right way to go.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did try using the AND operator however, still running into the same issue.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Filter_AND.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64349i2F8487E0EE2BAC3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Filter_AND.PNG" alt="Filter_AND.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried using a &lt;STRONG&gt;Date&lt;/STRONG&gt;&amp;nbsp;field with AND operator however, in this case none of the records came through.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Filter_Field.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64350i3B65B9B3EC185934/image-size/large?v=v2&amp;amp;px=999" role="button" title="Filter_Field.PNG" alt="Filter_Field.PNG" /&gt;&lt;/span&gt;I am wondering could this happen because of the fact that in the date field there is date as well as time and do I need a separate field just for time. ]Here is snippet of data&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data.PNG" style="width: 757px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64352iD567903D0266476B/image-size/large?v=v2&amp;amp;px=999" role="button" title="data.PNG" alt="data.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am also attaching GeoEvent definition being used.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schema.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64351i1118B13BB20F29E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schema.PNG" alt="Schema.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 02:41:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-filter-not-working/m-p/1264244#M3909</guid>
      <dc:creator>wizgis</dc:creator>
      <dc:date>2023-03-04T02:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date Filter not working</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-filter-not-working/m-p/1264802#M3912</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/475615"&gt;@wizgis&lt;/a&gt;&amp;nbsp;-- It's not a problem that the date and time are part of the same data value being ingested. We actually prefer that. The GeoEvent Definition specifies that the input should be adapting data values as a&amp;nbsp;&lt;EM&gt;Date&lt;/EM&gt;. The fact that &lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2"&gt;acquisitionTime&lt;/FONT&gt;&lt;/STRONG&gt; is expressed as an ISO 8601 standard value helps guarantee GeoEvent Server's input will be able to adapt the value it receives and create a &lt;EM&gt;Date&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I'm not sure that you can configure a Filter literally with &lt;FONT face="courier new,courier" size="2"&gt;$RECEIVED_TIME&lt;/FONT&gt;, but you should be able to configure it with the name of the attribute field (e.g. &lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2"&gt;acquisitionTime&lt;/FONT&gt;&lt;/STRONG&gt;) as you show in&amp;nbsp; your illustrations. That is how I tested the configuration I included in my previous response as a screenshot.&lt;/P&gt;&lt;P&gt;I did perceive what looks like a typo in the one screenshot you shared:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Filter.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64478iBB876686EA716818/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Filter.png" alt="Filter.png" /&gt;&lt;/span&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm sure you took care of that extra bit of punctuation, but I saw it in your screenshot, so I thought I'd mention it.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One thing to check is the actual value of the&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Date&lt;/EM&gt;&lt;SPAN&gt; your GeoEvent Server adapts from the ISO 8601 value received by the input. Adaption of an ISO 8601 value assumes UTC. Given the input and output below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data.png" style="width: 536px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64494i415AB3F9CD5123B4/image-dimensions/536x291?v=v2" width="536" height="291" role="button" title="Data.png" alt="Data.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You'll note that the value&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2"&gt;1669849214000&lt;/FONT&gt;&lt;/STRONG&gt; can be represented as&amp;nbsp;&lt;EM&gt;&lt;U&gt;either&lt;/U&gt;&lt;/EM&gt;&amp;nbsp;of the following strings:&lt;BR /&gt;&amp;nbsp; o&amp;nbsp;&amp;nbsp;Wed Nov 30 15:00:14 PST 2022&lt;BR /&gt;&amp;nbsp; o&amp;nbsp;&amp;nbsp;Wed Nov 30 23:00:14 GMT 2022&lt;/P&gt;&lt;P&gt;A string representation of the epoch value&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2"&gt;1669849214000&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;must be constructed in order to extract values for&amp;nbsp;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;EM&gt;hh&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;,&amp;nbsp;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;EM&gt;mm&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;, and&amp;nbsp;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;EM&gt;ss&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;to plug into the filter's algebra. The filter, I think, is choosing to construct the string in the server's local time zone -- which for me is the first string above, showing PST.&lt;/P&gt;&lt;P&gt;Obviously if you are expecting&amp;nbsp;the filter to only keep values between 05:00 and 17:00 and the filter is using strings constructed in local time, then&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2"&gt;1669849214000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; and &lt;FONT color="#008000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2"&gt;1669852814000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; both satisfy the filter. These two epoch values are 15:00:14 and&amp;nbsp;16:00:14 (local, PST). The values &lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;1669856414000&lt;/FONT&gt;&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;1669860014000&lt;/FONT&gt;&lt;/STRONG&gt; are both greater than 17:00 once the epochs are converted to strings in the local time zone. The on-line utility&amp;nbsp;&lt;A href="https://www.epochconverter.com" target="_blank" rel="noopener"&gt;https://www.epochconverter.com&lt;/A&gt;&amp;nbsp;can help you convert epoch values to string values in both GMT and your local time zone.&lt;/P&gt;&lt;P&gt;At this point if you are still having trouble configuring the filter and working with the date/time value conversions, I think it would be helpful for you to open an incident with Esri Technical Support so that someone can work with you, your data, and correlate behavior for your time zone.&lt;/P&gt;&lt;P&gt;Hope the above helps --&lt;BR /&gt;RJ&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 02:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/date-filter-not-working/m-p/1264802#M3912</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2023-03-07T02:12:58Z</dc:date>
    </item>
  </channel>
</rss>

