<?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: Follow-up: Disable rollback on output feature service connector in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/follow-up-disable-rollback-on-output-feature/m-p/630812#M2769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/44379"&gt;RJ Sunderman&lt;/A&gt;!&amp;nbsp; This will help us for this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2019 20:31:57 GMT</pubDate>
    <dc:creator>ISP_graynic</dc:creator>
    <dc:date>2019-08-20T20:31:57Z</dc:date>
    <item>
      <title>Follow-up: Disable rollback on output feature service connector</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/follow-up-disable-rollback-on-output-feature/m-p/630810#M2767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/44379"&gt;RJ Sunderman&lt;/A&gt;‌ I am having the same issue described in the thread &lt;A href="https://community.esri.com/message/530527"&gt;GeoEvent: disable rollback on output feature service connector&lt;/A&gt;&amp;nbsp;... What would the filter look like in GeoEvent?&amp;nbsp; All I want to do is filter out any events that have too many characters in the string and are therefore causing a roll back.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 21:26:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/follow-up-disable-rollback-on-output-feature/m-p/630810#M2767</guid>
      <dc:creator>ISP_graynic</dc:creator>
      <dc:date>2019-08-16T21:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Follow-up: Disable rollback on output feature service connector</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/follow-up-disable-rollback-on-output-feature/m-p/630811#M2768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="font-family: sans-serif; color: #3d3d3d; font-size: 11.5pt;"&gt;&lt;P style="margin: 0pt 0pt 8pt 0pt;"&gt;Hello Nicholas –&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;A&amp;nbsp;few things have changed since I replied to&amp;nbsp;Thibaut back in August 2015. From the GeoEvent Server side,&amp;nbsp;it is important to know that&amp;nbsp;a Field Calculator processor's expressions support a number of different string functions. From the ArcGIS Server side, the ArcGIS REST Services API changed at the 10.7 release to offer clients an ability to specify whether or not to rollback a transaction if a failure is encountered.&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;GeoEvent Server has &lt;EM style="text-decoration: underline; "&gt;not&lt;/EM&gt; yet integrated the changes made to the map/feature services REST API. That means that at the latest releases (10.6.x and 10.7.x) you will not be able to configure an output in GeoEvent Manager to specify that a transaction should or should not rollback when restrictions enforced by the feature service (such as string length) are not satisfied.&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;I also want to clarify what I meant when I said "use GeoEvent filters to screen for event attributes which do not satisfy your feature service's constraints". On the one hand, you could use a filter to discard event records whose&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;eventId&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;attribute were&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;null&lt;/EM&gt;&lt;/STRONG&gt;. This would allow you to catch and discard event records whose undefined event identifier would otherwise fail to satisfy a&amp;nbsp;&lt;EM style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;nullable: false&lt;/EM&gt; restriction enforced by a feature service.&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;You cannot configure a filter with an expression such as&amp;nbsp;&lt;EM&gt;length(eventId)&lt;/EM&gt; however, so its not possible to configure a filter to discard event records whose event identifier string is "too long" to be used when adding or updating a feature record. What you&amp;nbsp;&lt;EM style="text-decoration: underline; "&gt;can&lt;/EM&gt; do is configure a Field Calculator to trim the string value to a compliant length or remove portions of a string you know make the string too long.&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;The simpler approach is discussed in the &lt;A href="https://links.esri.com/GEOEVENT-INTRO"&gt;Introduction to GeoEvent Server&lt;/A&gt; tutorial, Module 4 pages 10-12. The Field Calculator (Regular Expression) processor can be configured with a regular expression which applies a quantifier (or match count) to a portion of a pattern. The example illustrated below anchors the pattern match to the beginning of the string in the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/EM&gt; attribute and matches zero-up-to-thirty-two single characters. The matching sub-string is then written back into&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/EM&gt; effectively trimming the string's length.&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;&lt;IMG alt="Field Calculator (Regular Expression)" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/457497_FieldCalcRegEx.png" /&gt;&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;Your other option is to use a regular Field Calculator which supports a variety of string functions discussed on that &lt;A href="https://enterprise.arcgis.com/en/geoevent/latest/process-event-data/field-calculator-processor.htm"&gt;processor's page&lt;/A&gt; in the on-line help. For example, say that you wanted to eliminate all of the text between two delimiting dashes to simplify a description.&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;Given the string:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG style="font-size: 13px; font-family: 'courier new', courier, monospace; "&gt;Flight SWA2607 - Departed 17:20 hours - OnTime&lt;/STRONG&gt; &lt;BR /&gt;You could use an expression:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;replaceAll(eventid, '^(.*)([ ][-][ ].*[ ][-][ ])(.*)', '$1 - $3')&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;to effectively cut out the departure time and rewrite just the first and third parts of the string.&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;The regular expression pattern in that second example uses rounded parentheses to identify three groups with two sets of three square parentheses to identify single characters ... a space followed by a dash followed by another space. Each .* in the pattern matches zero or more characters, so we effectively parse out the flight number and its status (e.g. "OnTime") and throw away all the stuff in the middle of the string.&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;&lt;IMG alt="Field Calculator - Replace All Occurrences in String" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/457498_FieldCalcReplaceAll.png" /&gt;&lt;/P&gt;&lt;P style="margin: 12pt 0pt 8pt 0pt;"&gt;Hope this information helps&amp;nbsp;–&lt;BR /&gt;RJ&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 20:26:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/follow-up-disable-rollback-on-output-feature/m-p/630811#M2768</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2019-08-20T20:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Follow-up: Disable rollback on output feature service connector</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/follow-up-disable-rollback-on-output-feature/m-p/630812#M2769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/44379"&gt;RJ Sunderman&lt;/A&gt;!&amp;nbsp; This will help us for this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 20:31:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/follow-up-disable-rollback-on-output-feature/m-p/630812#M2769</guid>
      <dc:creator>ISP_graynic</dc:creator>
      <dc:date>2019-08-20T20:31:57Z</dc:date>
    </item>
  </channel>
</rss>

