<?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 Attribute Rule - Failed Validation in ArcGIS Collector Questions</title>
    <link>https://community.esri.com/t5/arcgis-collector-questions/attribute-rule-failed-validation/m-p/402330#M6934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using ArcGIS Pro 2.1, prior to publishing a feature service to Portal/server 10.6, I added a simple constraint attribute rule that requires a field to be populated. Triggering event is Insert. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if (IsEmpty($feature.species)) {&lt;BR /&gt;&amp;nbsp; return false;&lt;BR /&gt;}&lt;BR /&gt;else{&lt;BR /&gt;&amp;nbsp; return true;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**the insert trigger makes online editing on a portal webmap impossible. You try to create a new feature and the validation fails prior to the attribute box being displayed so you can enter a value. &lt;STRONG&gt;Is this the expected behavior&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**in Collector online mode, your allowed to collect a feature, and the attribute box is displayed as should be. After you populated all the fields, I purposely skip the required field and try to Submit the feature. I get a popup saying a field is required, the options on the popup are: Cancel / Retry. Hitting Retry doesn't work, obivously because the attribute value is still missing. Hitting Cancel deletes the draft feature and all attributes your had previously entered. &lt;STRONG&gt;Is this the expected behavior?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Too bad the Cancel option doesn't return you to the previously completed attribute popup where you can correct the required entries....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2018 17:20:44 GMT</pubDate>
    <dc:creator>danbecker</dc:creator>
    <dc:date>2018-02-28T17:20:44Z</dc:date>
    <item>
      <title>Attribute Rule - Failed Validation</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/attribute-rule-failed-validation/m-p/402330#M6934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using ArcGIS Pro 2.1, prior to publishing a feature service to Portal/server 10.6, I added a simple constraint attribute rule that requires a field to be populated. Triggering event is Insert. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if (IsEmpty($feature.species)) {&lt;BR /&gt;&amp;nbsp; return false;&lt;BR /&gt;}&lt;BR /&gt;else{&lt;BR /&gt;&amp;nbsp; return true;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**the insert trigger makes online editing on a portal webmap impossible. You try to create a new feature and the validation fails prior to the attribute box being displayed so you can enter a value. &lt;STRONG&gt;Is this the expected behavior&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**in Collector online mode, your allowed to collect a feature, and the attribute box is displayed as should be. After you populated all the fields, I purposely skip the required field and try to Submit the feature. I get a popup saying a field is required, the options on the popup are: Cancel / Retry. Hitting Retry doesn't work, obivously because the attribute value is still missing. Hitting Cancel deletes the draft feature and all attributes your had previously entered. &lt;STRONG&gt;Is this the expected behavior?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Too bad the Cancel option doesn't return you to the previously completed attribute popup where you can correct the required entries....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 17:20:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/attribute-rule-failed-validation/m-p/402330#M6934</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2018-02-28T17:20:44Z</dc:date>
    </item>
  </channel>
</rss>

