<?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 Geoevent 10.9.1 Date field type error in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoevent-10-9-1-date-field-type-error/m-p/1121143#M3671</link>
    <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I set up the geoevent definition below in geoevent 10.9.1 that is used for the input and output of a geoevent service.&lt;/P&gt;&lt;P&gt;Input:&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;(Receive JSON on a REST Endpoint)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Output:&amp;nbsp;&lt;SPAN class=""&gt;&amp;nbsp;(Send Features to a Stream Service)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WalterSimonazzi_VicPol_0-1638254580807.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28500i88C169C324A99196/image-size/large?v=v2&amp;amp;px=999" role="button" title="WalterSimonazzi_VicPol_0-1638254580807.jpeg" alt="WalterSimonazzi_VicPol_0-1638254580807.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And set up a streams service that stream the location of our front line members. All working fine as shown in the map below.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WalterSimonazzi_VicPol_1-1638254612557.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28501iEDE3E5C8C2E79D9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="WalterSimonazzi_VicPol_1-1638254612557.jpeg" alt="WalterSimonazzi_VicPol_1-1638254612557.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I check the Geoevent logs, I see the error below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inappropriate type for attribute 'unit-activitydatetime'. This attribute should be of type esriFieldTypeDate.&lt;/STRONG&gt; com.esri.arcgis.discovery.stream.ValidationException: Inappropriate type for attribute 'unit-activitydatetime'. This attribute should be of type esriFieldTypeDate. at com.esri.arcgis.discovery.stream.StreamService.validate(StreamService.java:813) ~[!/:?] at com.esri.arcgis.discovery.stream.StreamService.publish(StreamService.java:257) ~[!/:?] at com.esri.arcgis.discovery.stream.StreamService.send(StreamService.java:939) [!/:?] at com.esri.ges.transport.streamService.StreamServiceOutboundTransport.receive(StreamServiceOutboundTransport.java:502) [!/:?] at com.esri.ges.manager.stream.internal.OutboundTransportProxy.receive(OutboundTransportProxy.java:34) [!/:?] at com.esri.ges.manager.stream.internal.OutboundStreamImpl.receive(OutboundStreamImpl.java:178) [!/:?] at com.esri.ges.adapter.OutboundAdapterBase.receive(OutboundAdapterBase.java:36) [!/:?] at com.esri.ges.adapter.json.FeatureJsonOutboundAdapter.flushQueue(FeatureJsonOutboundAdapter.java:98) [!/:?] at com.esri.ges.adapter.json.FeatureJsonOutboundAdapter.run(FeatureJsonOutboundAdapter.java:75) [!/:?] at java.lang.Thread.run(Unknown Source) [?:?]&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WalterSimonazzi_VicPol_2-1638254708818.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28502iF339D0DFB542B607/image-size/large?v=v2&amp;amp;px=999" role="button" title="WalterSimonazzi_VicPol_2-1638254708818.jpeg" alt="WalterSimonazzi_VicPol_2-1638254708818.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to change it in the definition file however the only option available is “Date”, there is not a filetype esriFieldTypeDate that I can choose from. Can you advice please?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115391"&gt;@RJSunderman&lt;/a&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, 30 Nov 2021 12:55:32 GMT</pubDate>
    <dc:creator>WalterSimonazzi_VicPol</dc:creator>
    <dc:date>2021-11-30T12:55:32Z</dc:date>
    <item>
      <title>Geoevent 10.9.1 Date field type error</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoevent-10-9-1-date-field-type-error/m-p/1121143#M3671</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I set up the geoevent definition below in geoevent 10.9.1 that is used for the input and output of a geoevent service.&lt;/P&gt;&lt;P&gt;Input:&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;(Receive JSON on a REST Endpoint)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Output:&amp;nbsp;&lt;SPAN class=""&gt;&amp;nbsp;(Send Features to a Stream Service)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WalterSimonazzi_VicPol_0-1638254580807.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28500i88C169C324A99196/image-size/large?v=v2&amp;amp;px=999" role="button" title="WalterSimonazzi_VicPol_0-1638254580807.jpeg" alt="WalterSimonazzi_VicPol_0-1638254580807.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And set up a streams service that stream the location of our front line members. All working fine as shown in the map below.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WalterSimonazzi_VicPol_1-1638254612557.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28501iEDE3E5C8C2E79D9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="WalterSimonazzi_VicPol_1-1638254612557.jpeg" alt="WalterSimonazzi_VicPol_1-1638254612557.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I check the Geoevent logs, I see the error below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inappropriate type for attribute 'unit-activitydatetime'. This attribute should be of type esriFieldTypeDate.&lt;/STRONG&gt; com.esri.arcgis.discovery.stream.ValidationException: Inappropriate type for attribute 'unit-activitydatetime'. This attribute should be of type esriFieldTypeDate. at com.esri.arcgis.discovery.stream.StreamService.validate(StreamService.java:813) ~[!/:?] at com.esri.arcgis.discovery.stream.StreamService.publish(StreamService.java:257) ~[!/:?] at com.esri.arcgis.discovery.stream.StreamService.send(StreamService.java:939) [!/:?] at com.esri.ges.transport.streamService.StreamServiceOutboundTransport.receive(StreamServiceOutboundTransport.java:502) [!/:?] at com.esri.ges.manager.stream.internal.OutboundTransportProxy.receive(OutboundTransportProxy.java:34) [!/:?] at com.esri.ges.manager.stream.internal.OutboundStreamImpl.receive(OutboundStreamImpl.java:178) [!/:?] at com.esri.ges.adapter.OutboundAdapterBase.receive(OutboundAdapterBase.java:36) [!/:?] at com.esri.ges.adapter.json.FeatureJsonOutboundAdapter.flushQueue(FeatureJsonOutboundAdapter.java:98) [!/:?] at com.esri.ges.adapter.json.FeatureJsonOutboundAdapter.run(FeatureJsonOutboundAdapter.java:75) [!/:?] at java.lang.Thread.run(Unknown Source) [?:?]&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WalterSimonazzi_VicPol_2-1638254708818.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28502iF339D0DFB542B607/image-size/large?v=v2&amp;amp;px=999" role="button" title="WalterSimonazzi_VicPol_2-1638254708818.jpeg" alt="WalterSimonazzi_VicPol_2-1638254708818.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to change it in the definition file however the only option available is “Date”, there is not a filetype esriFieldTypeDate that I can choose from. Can you advice please?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115391"&gt;@RJSunderman&lt;/a&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, 30 Nov 2021 12:55:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoevent-10-9-1-date-field-type-error/m-p/1121143#M3671</guid>
      <dc:creator>WalterSimonazzi_VicPol</dc:creator>
      <dc:date>2021-11-30T12:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Geoevent 10.9.1 Date field type error</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoevent-10-9-1-date-field-type-error/m-p/1126868#M3677</link>
      <description>&lt;P&gt;Hello Walter --&lt;/P&gt;&lt;P&gt;The short answer, I think, is that GeoEvent Server displays Java data types in its pick list:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RJSunderman_0-1639680996776.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29878iBA8BFFC946709033/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RJSunderman_0-1639680996776.png" alt="RJSunderman_0-1639680996776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When you configure a GeoEvent Definition you choose a data type for an event record attribute from one of the available types above.&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;esriFieldTypeXXX&lt;/EM&gt; date types come into play when looking at an ArcGIS Enterprise hosted feature layer or feature service which stores feature records in an enterprise geodatabase. The &lt;A href="https://developers.arcgis.com/enterprise-sdk/api-reference/net/esriFieldType/" target="_self"&gt;.NET API help topic&lt;/A&gt; lists the supported data types for feature record attributes.&lt;/P&gt;&lt;P&gt;Several of these GeoEvent Server does &lt;U&gt;not&lt;/U&gt; support (like &lt;EM&gt;esriFieldTypeBlob&lt;/EM&gt;). Others, like&amp;nbsp;&lt;EM&gt;esriFieldTypeInteger&lt;/EM&gt;, are compatible with a GeoEvent Definition specifying the ‘Java’ data type Integer. &lt;SPAN&gt;It can get a little tricky trying to keep the differences between the 64-bit Java data types used by GeoEvent Server and the 32-bit data types used by other parts of the ArcGIS Enterprise straight. Luckily, date/time values are always compatible when using a ‘Java’ type &lt;/SPAN&gt;&lt;EM&gt;Date&lt;/EM&gt;&lt;SPAN&gt; and ArcGIS Enterprise &lt;/SPAN&gt;&lt;EM&gt;esriFieldTypeDate&lt;/EM&gt;&lt;SPAN&gt; data type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So long as the event records you route to a &lt;EM&gt;Send Features to a Stream Service&lt;/EM&gt; output (for example) have date/time values mapped as &lt;EM&gt;Date&lt;/EM&gt; then the outbound adapter should be able to construct a data record formatted as Esri Feature JSON representing the date/time as an epoch long integer value (a 13-digit integer representing milliseconds since the Unix Epoch). That is what you should see in the ArcGIS REST Services Directory when subscribing to a stream service to see feature records the service broadcasts. It is also what you see when querying a feature service “at REST” using the query endpoint exposed by the feature service. What you see when looking at a pop-up in a web mapping application is up to the web application -- it probably is going to represent the epoch value it gets from the database as a more human readable string, and might even do you the favor of shifting the value from UTC to the local time of your client/server machine.&lt;/P&gt;&lt;P&gt;I’m not familiar with the GeoEvent Server component logger &lt;STRONG&gt;&lt;EM&gt;StreamService-IRIS-delete&lt;/EM&gt;&lt;/STRONG&gt; captured in your screenshot. I would want to take a look at how the event processing upstream from the &lt;EM&gt;Send Features to a Stream Service&lt;/EM&gt; output has been configured. I’m just guessing, but maybe by the time the event record reaches the output the data type for &lt;EM&gt;unit-activitydatetime&lt;/EM&gt; has changed?&amp;nbsp; Maybe it is a &lt;EM&gt;String&lt;/EM&gt; or a &lt;EM&gt;Long&lt;/EM&gt; integer value rather than a &lt;EM&gt;Date&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;The product team &lt;EM&gt;&lt;U&gt;does&lt;/U&gt;&lt;/EM&gt; rely on Esri Tech Support to work through these type of issues with customers, so I would encourage you to open an incident with Esri Tech Support so that an analyst can be assigned to investigate the issue and assist with reproducibility (if necessary). If you think it necessary you can request a GeoEvent Server specialist be assigned when you open an incident with Esri Technical Support.&lt;/P&gt;&lt;P&gt;Hope this information helps --&lt;BR /&gt;RJ&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 19:16:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoevent-10-9-1-date-field-type-error/m-p/1126868#M3677</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2021-12-16T19:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Geoevent 10.9.1 Date field type error</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoevent-10-9-1-date-field-type-error/m-p/1127104#M3678</link>
      <description>&lt;P&gt;Hi RJ,&lt;/P&gt;&lt;P&gt;Thanks for such a detailed answer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 11:33:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoevent-10-9-1-date-field-type-error/m-p/1127104#M3678</guid>
      <dc:creator>WalterSimonazzi_VicPol</dc:creator>
      <dc:date>2021-12-17T11:33:19Z</dc:date>
    </item>
  </channel>
</rss>

