<?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 Handling GeoEvents with null values in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/handling-geoevents-with-null-values/m-p/414259#M1797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field calculator processor for converting x,y-fields to geometries. The expression is:&amp;nbsp;'{' + ' "x":' + POINT_X + ',' + ' "y":' + POINT_Y + ',' + ' "spatialReference":{"wkid":3021} }'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However for some GeoEvents the x,y values are null and and error is thrown in the log, see below.&lt;/P&gt;&lt;P&gt;How can I convert the null values to 0.0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preferably all events would have a position, but they don't, and I get so many errors in the log that other important information is hard to find, so it would be better to change the null values to 0.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression ['{' + ' "x":' + POINT_X + ',' + ' "y":' + POINT_Y + ',' + ' "spatialReference":{"wkid":3021} }'] evaluation failed: operator+(arg0:[NonGroup], arg1:[NonGroup]) evaluation failed because of GeoEvent field 'POINT_X' of type [Double] and value 'null' cannot be used as an argument arg1:[NonGroup]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2020 13:51:40 GMT</pubDate>
    <dc:creator>BjarkeThormann</dc:creator>
    <dc:date>2020-10-26T13:51:40Z</dc:date>
    <item>
      <title>Handling GeoEvents with null values</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/handling-geoevents-with-null-values/m-p/414259#M1797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field calculator processor for converting x,y-fields to geometries. The expression is:&amp;nbsp;'{' + ' "x":' + POINT_X + ',' + ' "y":' + POINT_Y + ',' + ' "spatialReference":{"wkid":3021} }'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However for some GeoEvents the x,y values are null and and error is thrown in the log, see below.&lt;/P&gt;&lt;P&gt;How can I convert the null values to 0.0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preferably all events would have a position, but they don't, and I get so many errors in the log that other important information is hard to find, so it would be better to change the null values to 0.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression ['{' + ' "x":' + POINT_X + ',' + ' "y":' + POINT_Y + ',' + ' "spatialReference":{"wkid":3021} }'] evaluation failed: operator+(arg0:[NonGroup], arg1:[NonGroup]) evaluation failed because of GeoEvent field 'POINT_X' of type [Double] and value 'null' cannot be used as an argument arg1:[NonGroup]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2020 13:51:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/handling-geoevents-with-null-values/m-p/414259#M1797</guid>
      <dc:creator>BjarkeThormann</dc:creator>
      <dc:date>2020-10-26T13:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Handling GeoEvents with null values</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/handling-geoevents-with-null-values/m-p/414260#M1798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/410045"&gt;Bjarke Thormann&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case I think using two filters is the easiest option. Maybe it it not the most elegant way, cause you need a positive and a negative filter but it is going to solve your problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Positive Filter is just checking if you have a valid geometry and is processing the field calculator like you described. Negative Filter would check if no geometry is available, in this case you could use a copy of you field calculator that is&amp;nbsp;using hardcoded coordinates (0.0./0.0) instead of X/Y.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like I mentioned, its not so elegant but will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2020 07:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/handling-geoevents-with-null-values/m-p/414260#M1798</guid>
      <dc:creator>Stefan_Jung</dc:creator>
      <dc:date>2020-10-27T07:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Handling GeoEvents with null values</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/handling-geoevents-with-null-values/m-p/414261#M1799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I guess that's how to do it.&lt;/P&gt;&lt;P&gt;/B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Confidentiality: C2 - Internal&lt;/P&gt;&lt;P&gt;Från: Stefan P. Jung &amp;lt;geonet@esri.com&amp;gt;&lt;/P&gt;&lt;P&gt;Skickat: den 27 oktober 2020 08:45&lt;/P&gt;&lt;P&gt;Till: Thormann Bjarke (YRD) &amp;lt;bjarke.thormann@vattenfall.com&amp;gt;&lt;/P&gt;&lt;P&gt;Ämne: Re:  - Re: Handling GeoEvents with null values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet, The Esri Community | GIS and Geospatial Professional Community &amp;lt;https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.esri.com%2F%3Fet%3Dwatches.email.thread&amp;amp;data=04%7C01%7Cbjarke.thormann%40vattenfall.com%7C8d41371c84394a777e3508d87a4c5fea%7Cf8be18a6f6484a47be7386d6c5c6604d%7C0%7C0%7C637393815739466795%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=DkvOSOOfSoSM9DYBuOniany6gFT%2B9pL19FWKmPu0LKY%3D&amp;amp;reserved=0&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: Handling GeoEvents with null values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Stefan P. Jung&amp;lt;https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.esri.com%2Fpeople%2Fstefan.jungesri-de-esridist%3Fet%3Dwatches.email.thread&amp;amp;data=04%7C01%7Cbjarke.thormann%40vattenfall.com%7C8d41371c84394a777e3508d87a4c5fea%7Cf8be18a6f6484a47be7386d6c5c6604d%7C0%7C0%7C637393815739466795%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=AgjtJ8RVAbr1F2qPd8Jhfz4F2sO%2BuAXvYDQ2rfzCrJw%3D&amp;amp;reserved=0&amp;gt; in GeoEvent - View the full discussion&amp;lt;https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.esri.com%2Fmessage%2F961243-re-handling-geoevents-with-null-values%3FcommentID%3D961243%26et%3Dwatches.email.thread%23comment-961243&amp;amp;data=04%7C01%7Cbjarke.thormann%40vattenfall.com%7C8d41371c84394a777e3508d87a4c5fea%7Cf8be18a6f6484a47be7386d6c5c6604d%7C0%7C0%7C637393815739466795%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=8rl%2BLrQn53kyKKYGkoa6moS2NpcVSxHnYFpAf%2Byfalw%3D&amp;amp;reserved=0&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2020 10:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/handling-geoevents-with-null-values/m-p/414261#M1799</guid>
      <dc:creator>BjarkeThormann</dc:creator>
      <dc:date>2020-10-27T10:19:06Z</dc:date>
    </item>
  </channel>
</rss>

