<?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 Error Saving Attribute Rule with correct Syntax in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/error-saving-attribute-rule-with-correct-syntax/m-p/1411323#M81996</link>
    <description>&lt;P&gt;Hello everybody,&lt;BR /&gt;&lt;BR /&gt;Would anyone happen to have run into something similar and know a solution to the below problem i'm having?&lt;BR /&gt;&lt;BR /&gt;This is in Pro 2.9 and Enterprise 10.9.1.&lt;BR /&gt;&lt;BR /&gt;I am trying to test adding an immediate calculation attribute rule using python to multiple feature classes in a dataset that I own in a test database, so the fc names goes something like this;&amp;nbsp; &lt;STRONG&gt;TestDB."MYNAME\ORGANIZATION".fc&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;The backslash has created many problems with testing what in reality is a very simple script.&lt;BR /&gt;Initially I can save the attribute rule on any of the fc's in my dataset in Pro, with the following function;&lt;BR /&gt;&lt;BR /&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;FeatureSetByName($datastore, "fc", ['FIELD'])&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;I discovered that Pro upon successfully validating and saving the Attribute Rule adds the full fc name to the 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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;FeatureSetByName($datastore, 'TestDB."MYNAME\ORGANIZATION".fc', ['FIELD'])&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;&lt;BR /&gt;This is fine, and the Attribute Rule can be successfully used when triggered.&lt;BR /&gt;However, when attempting to save a change or really just save the attribute rule again from Pro the&amp;nbsp;&lt;STRONG&gt;backslash&lt;/STRONG&gt; causes this error &lt;STRONG&gt;Arcade error: Identifier expected, Script line: 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Arcpy from an IDE or Pro Notebook cannot add the full fc name like Pro does when saving the rule. So this lead me to try and format the script in the Attribute Rule Arcade Editor by concatenating a string of the first part of the full fc name &lt;STRONG&gt;, TextFormatting.BackwardSlash,&amp;nbsp;&lt;/STRONG&gt; and the rest of the fc name.&lt;/P&gt;&lt;P&gt;Even though this is correct according to Arcade Syntax and is successfully verifiable, upon trying to save I get&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;ERROR 99999&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;At this point it seems I have to just test on another featureclass without that naming convention (backslash), but that messes up our testing process and this seems like it should be a non issue.&lt;BR /&gt;&lt;BR /&gt;Thank you for your time!&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2024 21:31:36 GMT</pubDate>
    <dc:creator>Oliver_Sandoval_e</dc:creator>
    <dc:date>2024-04-18T21:31:36Z</dc:date>
    <item>
      <title>Error Saving Attribute Rule with correct Syntax</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-saving-attribute-rule-with-correct-syntax/m-p/1411323#M81996</link>
      <description>&lt;P&gt;Hello everybody,&lt;BR /&gt;&lt;BR /&gt;Would anyone happen to have run into something similar and know a solution to the below problem i'm having?&lt;BR /&gt;&lt;BR /&gt;This is in Pro 2.9 and Enterprise 10.9.1.&lt;BR /&gt;&lt;BR /&gt;I am trying to test adding an immediate calculation attribute rule using python to multiple feature classes in a dataset that I own in a test database, so the fc names goes something like this;&amp;nbsp; &lt;STRONG&gt;TestDB."MYNAME\ORGANIZATION".fc&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;The backslash has created many problems with testing what in reality is a very simple script.&lt;BR /&gt;Initially I can save the attribute rule on any of the fc's in my dataset in Pro, with the following function;&lt;BR /&gt;&lt;BR /&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;FeatureSetByName($datastore, "fc", ['FIELD'])&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;I discovered that Pro upon successfully validating and saving the Attribute Rule adds the full fc name to the 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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;FeatureSetByName($datastore, 'TestDB."MYNAME\ORGANIZATION".fc', ['FIELD'])&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;&lt;BR /&gt;This is fine, and the Attribute Rule can be successfully used when triggered.&lt;BR /&gt;However, when attempting to save a change or really just save the attribute rule again from Pro the&amp;nbsp;&lt;STRONG&gt;backslash&lt;/STRONG&gt; causes this error &lt;STRONG&gt;Arcade error: Identifier expected, Script line: 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Arcpy from an IDE or Pro Notebook cannot add the full fc name like Pro does when saving the rule. So this lead me to try and format the script in the Attribute Rule Arcade Editor by concatenating a string of the first part of the full fc name &lt;STRONG&gt;, TextFormatting.BackwardSlash,&amp;nbsp;&lt;/STRONG&gt; and the rest of the fc name.&lt;/P&gt;&lt;P&gt;Even though this is correct according to Arcade Syntax and is successfully verifiable, upon trying to save I get&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;ERROR 99999&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;At this point it seems I have to just test on another featureclass without that naming convention (backslash), but that messes up our testing process and this seems like it should be a non issue.&lt;BR /&gt;&lt;BR /&gt;Thank you for your time!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 21:31:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-saving-attribute-rule-with-correct-syntax/m-p/1411323#M81996</guid>
      <dc:creator>Oliver_Sandoval_e</dc:creator>
      <dc:date>2024-04-18T21:31:36Z</dc:date>
    </item>
  </channel>
</rss>

