<?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 ArcGIS Pro- Attribute Rules in a *SDE Referenced* Enterprise Portal GIS Service? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attribute-rules-in-a-sde-referenced/m-p/1467892#M83268</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We recently created Attribute Rules in our enterpise SDE and published to our Enterprise Portal as a 'referenced service'. When editing in map viewer we see this error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amanda__Huber_0-1715718462905.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104107i9744D017904EA4E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amanda__Huber_0-1715718462905.png" alt="Amanda__Huber_0-1715718462905.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It's unclear in the documentation for Pro if Enterprise Portal services support Attribute Rules since the doc only mentions AGOL-&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/share-datasets-with-attribute-rules.htm#:~:text=Attribute%20rules%20are%20not%20transferred%20when%20you%20publish%20datasets%20to%20an%20ArcGIS%20Online%20portal" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/share-datasets-with-attribute-rules.htm#:~:text=Attribute%20rules%20are%20not%20transferred%20when%20you%20publish%20datasets%20to%20an%20ArcGIS%20Online%20portal&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Asking for a friend! This was supposed to be our workaround to &lt;A href="https://community.esri.com/t5/arcgis-online-questions/arcgis-online-map-viewer-forms-logic-issue/m-p/1418102#M59015" target="_self"&gt;Map Viwer's forms not allowing for editabiliy and field calculations simultaniously&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Additional notes regarding our setup:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;We are using a SQL database, enterprise SDE&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Published with Pro 3.2.2&lt;/LI&gt;&lt;LI&gt;Enterprise Portal version 11.2&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;We are using “Immediate Calculation Rules” and here are the arcade expressions/configurations:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amanda__Huber_0-1715883895118.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104409i3CE83A889F2A2253/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amanda__Huber_0-1715883895118.png" alt="Amanda__Huber_0-1715883895118.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amanda__Huber_1-1715883895122.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104410i1C63F4DF6C2E0D79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amanda__Huber_1-1715883895122.png" alt="Amanda__Huber_1-1715883895122.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Something else to note- these attribute rules are created on a related table. Users will be adding new related records as part of the workflow, both parent table and related table are in the same ‘referenced’ service with “add” and “Update” editing enabled.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amanda Huber&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 18:24:48 GMT</pubDate>
    <dc:creator>Amanda__Huber</dc:creator>
    <dc:date>2024-05-16T18:24:48Z</dc:date>
    <item>
      <title>ArcGIS Pro- Attribute Rules in a *SDE Referenced* Enterprise Portal GIS Service?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attribute-rules-in-a-sde-referenced/m-p/1467892#M83268</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We recently created Attribute Rules in our enterpise SDE and published to our Enterprise Portal as a 'referenced service'. When editing in map viewer we see this error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amanda__Huber_0-1715718462905.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104107i9744D017904EA4E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amanda__Huber_0-1715718462905.png" alt="Amanda__Huber_0-1715718462905.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It's unclear in the documentation for Pro if Enterprise Portal services support Attribute Rules since the doc only mentions AGOL-&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/share-datasets-with-attribute-rules.htm#:~:text=Attribute%20rules%20are%20not%20transferred%20when%20you%20publish%20datasets%20to%20an%20ArcGIS%20Online%20portal" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/share-datasets-with-attribute-rules.htm#:~:text=Attribute%20rules%20are%20not%20transferred%20when%20you%20publish%20datasets%20to%20an%20ArcGIS%20Online%20portal&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Asking for a friend! This was supposed to be our workaround to &lt;A href="https://community.esri.com/t5/arcgis-online-questions/arcgis-online-map-viewer-forms-logic-issue/m-p/1418102#M59015" target="_self"&gt;Map Viwer's forms not allowing for editabiliy and field calculations simultaniously&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Additional notes regarding our setup:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;We are using a SQL database, enterprise SDE&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Published with Pro 3.2.2&lt;/LI&gt;&lt;LI&gt;Enterprise Portal version 11.2&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;We are using “Immediate Calculation Rules” and here are the arcade expressions/configurations:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amanda__Huber_0-1715883895118.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104409i3CE83A889F2A2253/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amanda__Huber_0-1715883895118.png" alt="Amanda__Huber_0-1715883895118.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amanda__Huber_1-1715883895122.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104410i1C63F4DF6C2E0D79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amanda__Huber_1-1715883895122.png" alt="Amanda__Huber_1-1715883895122.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Something else to note- these attribute rules are created on a related table. Users will be adding new related records as part of the workflow, both parent table and related table are in the same ‘referenced’ service with “add” and “Update” editing enabled.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amanda Huber&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 18:24:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attribute-rules-in-a-sde-referenced/m-p/1467892#M83268</guid>
      <dc:creator>Amanda__Huber</dc:creator>
      <dc:date>2024-05-16T18:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro- Attribute Rules in a *SDE Referenced* Enterprise Portal GIS Service?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attribute-rules-in-a-sde-referenced/m-p/1525518#M87308</link>
      <description>&lt;P&gt;Hello, did you ever figure this out?&amp;nbsp; We are having the same issue.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 23:20:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attribute-rules-in-a-sde-referenced/m-p/1525518#M87308</guid>
      <dc:creator>TomJansen3</dc:creator>
      <dc:date>2024-08-21T23:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro- Attribute Rules in a *SDE Referenced* Enterprise Portal GIS Service?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attribute-rules-in-a-sde-referenced/m-p/1559408#M90204</link>
      <description>&lt;P&gt;I was also getting the "Something went wrong Edits could not be saved: Unable to complete operation." error.&lt;/P&gt;&lt;P&gt;Install Telerik's FIDDLER and watch your browser's web traffic, you should see a failed request come through when you hit Create or Update.&amp;nbsp; Click on that and you'll see a way more useful error message.&amp;nbsp; It would be nice if they put the failed rule name in that generic error message.&lt;/P&gt;&lt;P&gt;You'll see something like this in the response content:&lt;/P&gt;&lt;P&gt;Internal error during object insert. Failed to evaluate Arcade expression. [&lt;BR /&gt;Rule name: IU_LastEditUserID,&lt;BR /&gt;Triggering event: Insert,&lt;BR /&gt;Class name: AREAS_POLYGONS,&lt;BR /&gt;GlobalID: {A12345EA-1F12-12E1-1B12-0123456789D1},&lt;BR /&gt;Arcade error: Unexpected null,&lt;BR /&gt;Script line: 2]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, debugging method aside, you can probably fix your error by changing the Arcade expression to use HasItem first, then make sure the value is not null too before using it.&amp;nbsp; Sometimes more like this function that gets the right user id from both ArcGIS Pro and Portal (because it may return a value or have certain attributes in one but not the other):&lt;/P&gt;&lt;P&gt;var username="";&lt;BR /&gt;var userinfo = GetUser();&lt;BR /&gt;if(userinfo==null)&lt;BR /&gt;{&lt;BR /&gt;username="";&lt;BR /&gt;}&lt;BR /&gt;else if(HasValue(userinfo, "email"))&lt;BR /&gt;{&lt;BR /&gt;var array = Split(userinfo.email,"@",1);&lt;BR /&gt;username = array[0];&lt;BR /&gt;}&lt;BR /&gt;else if(HasValue(userinfo, "username"))&lt;BR /&gt;{&lt;BR /&gt;username=userinfo.username;&lt;BR /&gt;}&lt;BR /&gt;return username;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In short, make sure you always check your arcade function call results to be sure they didn't return a null before using the attributes inside them.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:34:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attribute-rules-in-a-sde-referenced/m-p/1559408#M90204</guid>
      <dc:creator>JoshuaDalton</dc:creator>
      <dc:date>2024-11-15T22:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro- Attribute Rules in a *SDE Referenced* Enterprise Portal GIS Service?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attribute-rules-in-a-sde-referenced/m-p/1625585#M96791</link>
      <description>&lt;P&gt;Not sure if you ever solved this problem, but I would suggest checking the "Exclude from application evaluation" save the rule, and then see if the error persists.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 03:47:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-attribute-rules-in-a-sde-referenced/m-p/1625585#M96791</guid>
      <dc:creator>JamesBooth</dc:creator>
      <dc:date>2025-06-23T03:47:22Z</dc:date>
    </item>
  </channel>
</rss>

