<?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 rules fail when editing through a feature service in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-fail-when-editing-through-a/m-p/1014863#M35785</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Just for information I contacted ESRI support. They were very helpful. They made a new report for this error "BUG-000136553: An Arcade Attribute calculation Rule Function "Intersects" fails on Portal for ArcGIS". This only effects 10.7 servers 10.8 servers do not have the same flaw.&lt;/P&gt;&lt;P&gt;This seems to only happen when using Intersects or Contains Arcade functions on 10.7 servers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps anyone with the same issue.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jan 2021 21:38:02 GMT</pubDate>
    <dc:creator>JimWilliams</dc:creator>
    <dc:date>2021-01-07T21:38:02Z</dc:date>
    <item>
      <title>Attribute rules fail when editing through a feature service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-fail-when-editing-through-a/m-p/1007824#M34821</link>
      <description>&lt;P&gt;I have set up a attribute rule Calculation that will run on evaluation. I am using a enterprise setup (SQL database, Portal, REST endpoint) I published the data with "reference registered data", "Exclude from application evaluation" enabled, global IDs enabled, schema locking, I have both Map Service and a Feature Service, but I didn't enable versioning or archiving.&lt;/P&gt;&lt;P&gt;All the data is in the same database, but the points are under a Feature dataset and the polygons are not, but they are in the same projection.&lt;/P&gt;&lt;P&gt;This attribute rule evaluates successfully when I am editing normally through a GDB connection, in ArcGIS Pro, but when load our feature service and edit the attributes I get the following error:&lt;/P&gt;&lt;DIV&gt;Arcade error: Geometry type or null expected&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I don't think its a geometry error because it runs fine when I don't use a feature service. It seems more like the geometry is not accessible when you use a feature service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following Arcade script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// bring in the data and filter out abandoned valves
var valve_set = filter(featuresetbyname($datastore, 'GasValves', ['OBJECTID', 'WORK_ORDER_STATUS', 'ABNADONEDFLAG'], true), "ABNADONEDFLAG = 0")

// make the query for all closed work orders
var query = "WORK_ORDER_STATUS = 'CLOSED'"
var closed_valve_set = filter(valve_set, query)

//check if query is a empty feature set
if (closed_valve_set != null) {
    // return feature set counts
    var closed_count = count(Intersects($feature, valve_set)) - count(Intersects($feature, closed_valve_set))

    return closed_count
}

// return null if empty quadrant
else { return null }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 20:54:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-fail-when-editing-through-a/m-p/1007824#M34821</guid>
      <dc:creator>JimWilliams</dc:creator>
      <dc:date>2020-12-08T20:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute rules fail when editing through a feature service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-fail-when-editing-through-a/m-p/1014863#M35785</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Just for information I contacted ESRI support. They were very helpful. They made a new report for this error "BUG-000136553: An Arcade Attribute calculation Rule Function "Intersects" fails on Portal for ArcGIS". This only effects 10.7 servers 10.8 servers do not have the same flaw.&lt;/P&gt;&lt;P&gt;This seems to only happen when using Intersects or Contains Arcade functions on 10.7 servers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps anyone with the same issue.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 21:38:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-fail-when-editing-through-a/m-p/1014863#M35785</guid>
      <dc:creator>JimWilliams</dc:creator>
      <dc:date>2021-01-07T21:38:02Z</dc:date>
    </item>
  </channel>
</rss>

