<?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 Validation Rule - Invalid Arcade expression in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/validation-rule-invalid-arcade-expression/m-p/1475238#M83467</link>
    <description>&lt;P&gt;ArcGIS Pro 3.2.0&lt;/P&gt;&lt;P&gt;ARCGIS Enterprise 11.2&lt;/P&gt;&lt;P&gt;AWS Aurora database 14.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an error saving a Validation Rule with an Arcade expression&lt;/P&gt;&lt;P&gt;if (Length($feature, 'meters') &amp;lt; 25)&lt;BR /&gt;{ return false; }&lt;BR /&gt;else&lt;BR /&gt;{ return true; }&lt;/P&gt;&lt;P&gt;we tried different ways to work with Geometry but have the same error "Invalid Arcade expression"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;var line = Geometry($feature);&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although we have no error in the Expression Builder, the error appears when we click Save (Validation rule).&lt;/P&gt;&lt;P&gt;And we follow the attached order how to create&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/validation-attribute-rules.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/validation-attribute-rules.htm&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Register the dataset as branch versioned.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.3/help/data/geodatabases/overview/connect-to-a-branch-version.htm#ESRI_SECTION1_BDB51771CC28438CB4A5BC49DB6D7018" target="_blank" rel="noopener"&gt;Configure the database connection&lt;/A&gt;&amp;nbsp;to branch for the versioning type.&lt;/LI&gt;&lt;LI&gt;Add the attribute rule to the dataset.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkMindlin_idea_0-1716186757856.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104604i404DD8A669AE5B76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkMindlin_idea_0-1716186757856.png" alt="MarkMindlin_idea_0-1716186757856.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkMindlin_idea_1-1716186808664.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104605iB1F55A2D45B07611/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkMindlin_idea_1-1716186808664.png" alt="MarkMindlin_idea_1-1716186808664.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 06:38:06 GMT</pubDate>
    <dc:creator>MarkMindlin_idea</dc:creator>
    <dc:date>2024-05-20T06:38:06Z</dc:date>
    <item>
      <title>Validation Rule - Invalid Arcade expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/validation-rule-invalid-arcade-expression/m-p/1475238#M83467</link>
      <description>&lt;P&gt;ArcGIS Pro 3.2.0&lt;/P&gt;&lt;P&gt;ARCGIS Enterprise 11.2&lt;/P&gt;&lt;P&gt;AWS Aurora database 14.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an error saving a Validation Rule with an Arcade expression&lt;/P&gt;&lt;P&gt;if (Length($feature, 'meters') &amp;lt; 25)&lt;BR /&gt;{ return false; }&lt;BR /&gt;else&lt;BR /&gt;{ return true; }&lt;/P&gt;&lt;P&gt;we tried different ways to work with Geometry but have the same error "Invalid Arcade expression"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;var line = Geometry($feature);&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although we have no error in the Expression Builder, the error appears when we click Save (Validation rule).&lt;/P&gt;&lt;P&gt;And we follow the attached order how to create&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/validation-attribute-rules.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/validation-attribute-rules.htm&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Register the dataset as branch versioned.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.3/help/data/geodatabases/overview/connect-to-a-branch-version.htm#ESRI_SECTION1_BDB51771CC28438CB4A5BC49DB6D7018" target="_blank" rel="noopener"&gt;Configure the database connection&lt;/A&gt;&amp;nbsp;to branch for the versioning type.&lt;/LI&gt;&lt;LI&gt;Add the attribute rule to the dataset.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkMindlin_idea_0-1716186757856.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104604i404DD8A669AE5B76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkMindlin_idea_0-1716186757856.png" alt="MarkMindlin_idea_0-1716186757856.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkMindlin_idea_1-1716186808664.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104605iB1F55A2D45B07611/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkMindlin_idea_1-1716186808664.png" alt="MarkMindlin_idea_1-1716186808664.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 06:38:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/validation-rule-invalid-arcade-expression/m-p/1475238#M83467</guid>
      <dc:creator>MarkMindlin_idea</dc:creator>
      <dc:date>2024-05-20T06:38:06Z</dc:date>
    </item>
  </channel>
</rss>

