<?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: Can &amp;quot;update a feature - feature service&amp;quot; output connector updating some fields and leave others unchanged? in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/can-quot-update-a-feature-feature-service-quot/m-p/660731#M2927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use another field as the Where field instead of ObjectID when updating a feature?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 May 2017 14:00:32 GMT</pubDate>
    <dc:creator>TL2</dc:creator>
    <dc:date>2017-05-17T14:00:32Z</dc:date>
    <item>
      <title>Can "update a feature - feature service" output connector updating some fields and leave others unchanged?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/can-quot-update-a-feature-feature-service-quot/m-p/660728#M2924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I wonder if I can use the "Update a Feature" connector to update some, not all, of the fields in my feature layer. I noticed my existing data is getting wiped out if I did not have any field mapped to the feature layer event definition. Any way I can keep the rest of fields intact?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 23:57:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/can-quot-update-a-feature-feature-service-quot/m-p/660728#M2924</guid>
      <dc:creator>LifangHuang</dc:creator>
      <dc:date>2016-07-12T23:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can "update a feature - feature service" output connector updating some fields and leave others unchanged?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/can-quot-update-a-feature-feature-service-quot/m-p/660729#M2925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lifang,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for getting to you so late, but I hope to clarify how the "Update a Feature" output connector works. This connector utilizes the ArcGIS Server REST endpoint to update any or all fields of a Feature Service based on the OBJECTID in the GeoEvent Definition. Let's look at the following example of oil well data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoEvent Definition:&lt;/P&gt;&lt;P&gt;1. OBJECTID&lt;/P&gt;&lt;P&gt;2. Well_ID (TRACK_ID Tag)&lt;/P&gt;&lt;P&gt;3. Well Name&lt;/P&gt;&lt;P&gt;4. Operator&lt;/P&gt;&lt;P&gt;5. TD&lt;/P&gt;&lt;P&gt;6. Lat&lt;/P&gt;&lt;P&gt;7. Long&lt;/P&gt;&lt;P&gt;8. Geometry (GEOMETRY Tag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GeoEvent Definition above was imported from a Feature Service that was published to ArcGIS Server.This Feature Service is a master data set of all oil wells drilled within the particular area. We want to update only the TD (Total Depth) field, as an existing oil well was recently drilled to a new depth. If we used the above definition to send the new depth value, the Update a Feature output connector would still send all fields to the ArcGIS Server. There are two ways you can avoid re-writing all fields of the data without throwing errors:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use a Field Reducer Processor inside of the GeoEvent Service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;By incorporating the Field Reducer Processor into the GeoEvent Service, it will strip the unwanted fields off the output to the ArcGIS Server. You could eliminate all fields except for: OBJECTID, Well_ID and TD and still produce a valid result. This would also make for an easier setup, as you do not have to manage a new GeoEvent Definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create a new GeoEvent Definition containing only the fields you'd like to be updated. Then use a Field Mapper Processor.to map the old definition to the new. This produces the same effect as above but requires you to create and manage the new definition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once either of these two methods are used, the fields are restricted to only what you need, and GeoEvent will pass this along to the ArcGIS Server where the final updates will take place. The updates are taking place using the ArcGIS Server REST endpoint, specifically the updateFeatures operation. For more information on this operation, you can reference the following help document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/rest/apiref/fsupdate.html" title="http://resources.arcgis.com/en/help/rest/apiref/fsupdate.html"&gt;Update Features (Operation)&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would like a more in-depth look at the Update a Feature output connector or further clarification please let me know, as I can use this example to create a GeoEvent Service for screenshots and detailed reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 03:19:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/can-quot-update-a-feature-feature-service-quot/m-p/660729#M2925</guid>
      <dc:creator>ChrisBeyett</dc:creator>
      <dc:date>2016-10-14T03:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can "update a feature - feature service" output connector updating some fields and leave others unchanged?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/can-quot-update-a-feature-feature-service-quot/m-p/660730#M2926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @&lt;A _jive_internal="true" data-userid="155109" data-username="CBeyett-esristaff" href="https://community.esri.com/people/CBeyett-esristaff" style="color: #8ca9cd; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;Chris Beyett&lt;/A&gt;, &lt;A href="https://community.esri.com/people/ypzzcy"&gt;ypzzcy&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Is the&amp;nbsp;"&lt;SPAN style="background-color: #ffffff;"&gt;Update a Feature" only updated features based on OBJECTID? &amp;nbsp;In my "Update a Feature" output, I used trackerid which is a ID from the GPS device, rather than OBJECTID. And I ticked "No" for "Update only" which I assume it allows to add a new feature to the feature layer if the incoming trackerID not existed. BTW, the feature layer service is hosted on our Portal and have all edit and add permissions as setted below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The output Geoevent definition as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;trackerid (Track_ID)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;datetime&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;geometry (Geometry)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The problem I'm having at the moment are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;1. It didn't add new features when the incoming event has a new trackerID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;2. then I added the feature manually to the feature layer with a new unique trackerID, when a new input event received with the trackerID, it didn't update the feature I manually added with the matching trackerID.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG __jive_id="350630" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/350630_updateandcreate.JPG" style="width: 620px; height: 657px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG __jive_id="350631" alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/350631_FeatureLayerSettings.JPG" style="width: 620px; height: 501px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 02:44:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/can-quot-update-a-feature-feature-service-quot/m-p/660730#M2926</guid>
      <dc:creator>JackZHANG</dc:creator>
      <dc:date>2017-05-11T02:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can "update a feature - feature service" output connector updating some fields and leave others unchanged?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/can-quot-update-a-feature-feature-service-quot/m-p/660731#M2927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use another field as the Where field instead of ObjectID when updating a feature?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 14:00:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/can-quot-update-a-feature-feature-service-quot/m-p/660731#M2927</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2017-05-17T14:00:32Z</dc:date>
    </item>
  </channel>
</rss>

