<?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: Attribute Rule Fails to run When Editing from a Feature Service in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/656515#M38</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for getting beck to me. That is the entire arcade script. It just creates a polygon for records when I create a record. So its not so much a arcade script issue as it is that when using a feature service the attribute rule sends back a error.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Oct 2020 15:37:01 GMT</pubDate>
    <dc:creator>JimWilliams</dc:creator>
    <dc:date>2020-10-19T15:37:01Z</dc:date>
    <item>
      <title>Attribute Rule Fails to run When Editing from a Feature Service</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/656513#M36</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a simple attribute rule to create a polygon in our database when a new record is inserted. When I create e new record in ArcGIS Pro the attribute runs fine, but when I use a feature service that I have published and try to create a new record I get a error: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="box-sizing: border-box; font-family: 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;The ArcGIS AddFeatures call failed with code 1017 and description 'Failed to evaluate Arcade expression. [ Rule name: Create_dummy_Polygon, Triggering event: Insert, Class name: DevTracker_TentativeMap, GlobalID: {D3D3B619-C823-4494-9C77-1E22EE44C436}]'.&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Acrdae Statement:&lt;/P&gt;&lt;P&gt;var polygonJSON = {"rings":[[[-120.06134033203125,39.07570985562645],[-119.981689453125,39.07570985562645],[-119.981689453125,39.137516828427074],[-120.06134033203125,39.137516828427074],[-120.06134033203125,39.07570985562645]]], "spatialReference": { "wkid":3423}}&lt;BR /&gt;polygon(polygonJSON)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had a attribute rule execute while editing from a Feature Service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2020 00:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/656513#M36</guid>
      <dc:creator>JimWilliams</dc:creator>
      <dc:date>2020-10-17T00:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Fails to run When Editing from a Feature Service</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/656514#M37</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post the entire arcade script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2020 11:23:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/656514#M37</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2020-10-17T11:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Fails to run When Editing from a Feature Service</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/656515#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for getting beck to me. That is the entire arcade script. It just creates a polygon for records when I create a record. So its not so much a arcade script issue as it is that when using a feature service the attribute rule sends back a error.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2020 15:37:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/656515#M38</guid>
      <dc:creator>JimWilliams</dc:creator>
      <dc:date>2020-10-19T15:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Fails to run When Editing from a Feature Service</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/656516#M39</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you try it in playground, you get an geometry engine issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://developers.arcgis.com/arcade/playground/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried checking the box Exclude from Client so it is not trying to fire it in the browser?  If you are trying to use a return edits statement, you will have to check this box anyways&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2020 16:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/656516#M39</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2020-10-19T16:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Fails to run When Editing from a Feature Service</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/656517#M40</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, the error from the playground is because the wkid I have it for is state plane, which the playground doesn't use. So i checked the "Exclude from Client", and it still didn't work, thoroughly perplexed.&amp;nbsp; Thank you for the reply its good to know about the "Exclude from Client".&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2020 00:28:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/656517#M40</guid>
      <dc:creator>JimWilliams</dc:creator>
      <dc:date>2020-10-20T00:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule Fails to run When Editing from a Feature Service</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/1032578#M102</link>
      <description>&lt;P&gt;I have similar issue while creating features in Utility Network Comm v1 feature service (ArcGIS Pro 2.6.4, ArcGIS Enterprise 10.8.1). As part of troubleshooting, I have also published the Comm v1 Asset Package to a file geodatabase. In the Comm File geodatabase, I can digitize 2 wire knockouts and a wire duct bank StructureLine between them - no errors in Arcad attribute rules are displayed.&lt;/P&gt;&lt;P&gt;I applied the Comm asset package to the enterprise geodatabase and published a feature service. I made sure that all Attribute Rules have the "Exclude from Client evaluation" check box checked (even those that are disabled).&amp;nbsp; When I tried to repeat these same above steps in a branch version using Comm Feature Service, Pro shows a similar error : "Unable to complete operation. Failed to evaluate Arcade expression. [ Rule name: StructureLine - Create Duct in Duct Bank, triggering event: Insert, Class Name: StructureLine..." (see attached).&lt;/P&gt;&lt;P&gt;I compared the attribute rule between the File geodatabase and the Feature service, the only difference in details of the data source (i.e. local vs enterprise geodatabase). In summary, the Attribute Rule works with the Local file geodatabase works, and does not work when editing in the feature service. I had no issues / errors reported when Applying the asset package and publishing feature services.&lt;/P&gt;&lt;P&gt;Is there a way to troubleshoot such an error in Attribute Rule when using a Feature Services? Are there any recommendations?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 19:27:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rule-fails-to-run-when-editing-from-a/m-p/1032578#M102</guid>
      <dc:creator>SergueiSokolov</dc:creator>
      <dc:date>2021-03-03T19:27:58Z</dc:date>
    </item>
  </channel>
</rss>

