<?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: Is there a way to delete records from a Feature Layer? in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/is-there-a-way-to-delete-records-from-a-feature/m-p/448290#M1940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Allen -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at &lt;A href="https://community.esri.com/migration-blogpost/9961"&gt;Ben Saunders's Blog&lt;/A&gt;​:&amp;nbsp; &lt;A href="https://community.esri.com/migration-blogpost/54874"&gt;Orphan Tracks in GeoEvent Processor&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GeoEvent '&lt;SPAN style="color: #909090; font-family: Avenir-Light, Verdana, Geneva, sans-serif; font-size: 10pt;"&gt;Add a Feature&lt;/SPAN&gt;' and '&lt;SPAN style="color: #909090; font-family: Avenir-Light, Verdana, Geneva, sans-serif; font-size: 10pt;"&gt;Update a Feature&lt;/SPAN&gt;' output connectors can be configured to delete "old" features, if you have a field of type Date to which you can have the output refer. The output will periodically (every &lt;EM&gt;nn&lt;/EM&gt; seconds) query the feature layer to which it is adding or updating features for any records older than &lt;EM&gt;mm&lt;/EM&gt; minutes -- and delete them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can't always assume that a record should be deleted just because a date/time stamp hasn't been updated for &lt;EM&gt;mm&lt;/EM&gt; minutes. Nor do you always have a date/time stamp to which you can refer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben proposes allowing real-time analytics to decide when a record is "closed" or "obsolete" and writing a value into a specific event attribute field. Then have a '&lt;SPAN style="color: #909090; font-family: Avenir-Light, Verdana, Geneva, sans-serif; font-size: 10pt;"&gt;Poll an ArcGIS Server for Features&lt;/SPAN&gt;' input periodically poll for features which are&amp;nbsp; "closed" or "obsolete" ... and set the input's '&lt;SPAN style="color: #909090; font-family: Verdana, Geneva, sans-serif; font-size: 12px;"&gt;Delete Polled Features&lt;/SPAN&gt;' property to Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The beautiful thing is you don't event have to do anything with the records polled by the input. You could write them out to a confirmation log that these records are being deleted if you want ... but the input's only job is to identify records to be deleted, without requiring a Date field, and delete the identified records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- RJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Sep 2015 02:23:13 GMT</pubDate>
    <dc:creator>RJSunderman</dc:creator>
    <dc:date>2015-09-01T02:23:13Z</dc:date>
    <item>
      <title>Is there a way to delete records from a Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/is-there-a-way-to-delete-records-from-a-feature/m-p/448289#M1939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a good set up with GEP 10.3 that takes table data w/ X/Y coordinates and pushes them to a Feature Class (published w/ feature access).&amp;nbsp; Currently using an 'Update a Feature' output connector.&lt;/P&gt;&lt;P&gt;However I noticed recently that the target feature class is holding on to records we want deleted - in this case Police Department events that have been closed.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The input data is correct - only has active events.&amp;nbsp; But because the closed/inactive event records are not in the input, they simply stay in the output Feature Class, with no way (that I know of) in GEP to get rid of them.&amp;nbsp; We can have a simple status field that will allow us to use a definition query to keep 'closed' events from showing up, but I am wondering if there is a way to use GEP to see that a certain record is not in the newest input dataset, and therefore remove it from the output dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks -&lt;/P&gt;&lt;P&gt;Allen Scully&lt;/P&gt;&lt;P&gt;City of Tucson GIS Services&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 21:24:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/is-there-a-way-to-delete-records-from-a-feature/m-p/448289#M1939</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2015-08-31T21:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to delete records from a Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/is-there-a-way-to-delete-records-from-a-feature/m-p/448290#M1940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Allen -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at &lt;A href="https://community.esri.com/migration-blogpost/9961"&gt;Ben Saunders's Blog&lt;/A&gt;​:&amp;nbsp; &lt;A href="https://community.esri.com/migration-blogpost/54874"&gt;Orphan Tracks in GeoEvent Processor&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GeoEvent '&lt;SPAN style="color: #909090; font-family: Avenir-Light, Verdana, Geneva, sans-serif; font-size: 10pt;"&gt;Add a Feature&lt;/SPAN&gt;' and '&lt;SPAN style="color: #909090; font-family: Avenir-Light, Verdana, Geneva, sans-serif; font-size: 10pt;"&gt;Update a Feature&lt;/SPAN&gt;' output connectors can be configured to delete "old" features, if you have a field of type Date to which you can have the output refer. The output will periodically (every &lt;EM&gt;nn&lt;/EM&gt; seconds) query the feature layer to which it is adding or updating features for any records older than &lt;EM&gt;mm&lt;/EM&gt; minutes -- and delete them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can't always assume that a record should be deleted just because a date/time stamp hasn't been updated for &lt;EM&gt;mm&lt;/EM&gt; minutes. Nor do you always have a date/time stamp to which you can refer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben proposes allowing real-time analytics to decide when a record is "closed" or "obsolete" and writing a value into a specific event attribute field. Then have a '&lt;SPAN style="color: #909090; font-family: Avenir-Light, Verdana, Geneva, sans-serif; font-size: 10pt;"&gt;Poll an ArcGIS Server for Features&lt;/SPAN&gt;' input periodically poll for features which are&amp;nbsp; "closed" or "obsolete" ... and set the input's '&lt;SPAN style="color: #909090; font-family: Verdana, Geneva, sans-serif; font-size: 12px;"&gt;Delete Polled Features&lt;/SPAN&gt;' property to Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The beautiful thing is you don't event have to do anything with the records polled by the input. You could write them out to a confirmation log that these records are being deleted if you want ... but the input's only job is to identify records to be deleted, without requiring a Date field, and delete the identified records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- RJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 02:23:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/is-there-a-way-to-delete-records-from-a-feature/m-p/448290#M1940</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2015-09-01T02:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to delete records from a Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/is-there-a-way-to-delete-records-from-a-feature/m-p/448291#M1941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RJ - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally had a chance to work on this today.&amp;nbsp; So far so good.&amp;nbsp; In fact it is so simple and quick to set up I'm worried I have missed something.&lt;/P&gt;&lt;P&gt;What helped make this so easy is that our input data (table, published as feature service) already has a column that tags a record as NEW, UPDATE or CLOSED.&amp;nbsp; &lt;/P&gt;&lt;P&gt;So our GeoEvent Service essentially takes a table w/ X/Y data, uses a poll website for JSON input connector, and writes records to a feature service - fairly simple set up.&lt;/P&gt;&lt;P&gt;All I did to get rid of closed records was set up a Poll Feature Service input connector, point it to our Feature Service mentioned above, and in the 'Advanced' section of the input connector, set the definiton query to 'RecordType='Closed', check 'yes' for Delete Polled Features, and put it in a new GeoEvent Service with a simple 'Write to JSON' output connector so we can see what was deleted.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I have not yet had a chance to check on any performance impacts this might have, but we are not dealing with a ton of records so I'm optimistic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 22:52:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/is-there-a-way-to-delete-records-from-a-feature/m-p/448291#M1941</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2015-09-04T22:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to delete records from a Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/is-there-a-way-to-delete-records-from-a-feature/m-p/448292#M1942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After being away from GEP for a few months, I'm back working with this and have a few updates and another question.&lt;/P&gt;&lt;P&gt;The process RJ referred to above in Ben Saunder's blog works very well.&amp;nbsp; From what I can tell, it can be a perfect solution in some cases depending on your source data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;If your data feed updates a record for a feature from a status of 'Open' to 'Closed' (just for example) you are good to go.&amp;nbsp; &lt;/P&gt;&lt;P&gt;However I have a situation where the source data will create a brand new row, for the same 'event' when that event changes status (our statuses are 'New', Updated' and Closed) - so we end up with a situation where the same event ends up in our output feature class many times, and the process mentioned above will delete 1 record, for the one where the status is closed, but the 'New' and 'Updated' versions of the event still are present, even though as a whole the event can be considered 'closed' and all records of it need to be removed from the output feature class.&lt;/P&gt;&lt;P&gt;So my question is - how to get around this.&amp;nbsp; My thinking is that we need to use a date-time stamp, where only the most recent record for an event makes it's way into the output, and use this in conjunction with the Ben's method of deleting closed records.&lt;/P&gt;&lt;P&gt;I'm working on this now, but any suggestions are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks -&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 22:59:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/is-there-a-way-to-delete-records-from-a-feature/m-p/448292#M1942</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2016-01-07T22:59:11Z</dc:date>
    </item>
  </channel>
</rss>

