<?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 is not working for updating id field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-is-not-working-for-updating-id/m-p/1633959#M97317</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/37962"&gt;@AmandaParisi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From a surface level look, it could be that your values you're wanting to check are integers and not strings, you may be able to convert the value into text using:&lt;/P&gt;&lt;P&gt;var fieldValue = Text($feature.WJCUD_AREA);&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jul 2025 16:29:44 GMT</pubDate>
    <dc:creator>CodyPatterson</dc:creator>
    <dc:date>2025-07-17T16:29:44Z</dc:date>
    <item>
      <title>attribute rule is not working for updating id field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-is-not-working-for-updating-id/m-p/1633951#M97315</link>
      <description>&lt;P&gt;I am trying to have the below expression to calculate my facilityid field based on a field value from my area field.&amp;nbsp; Below is arcade expression but when I input the value in the field it is not calculating the field.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmandaParisi_0-1752767959957.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136719iFE7B46394DA6AD3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmandaParisi_0-1752767959957.png" alt="AmandaParisi_0-1752767959957.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="AmandaParisi_1-1752768001026.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136720i02F1ACA3B31B5F6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmandaParisi_1-1752768001026.png" alt="AmandaParisi_1-1752768001026.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;v&lt;FONT color="#800080"&gt;ar fieldValue = $feature.WJCUD_AREA; // Get the value from the controlling field&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;if (fieldValue == "1") {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;return concatenate("SMH-" + "1" + NextSequenceValue('MH_seq01'));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;} else if (fieldValue == "2") {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;return concatenate("SMH-" + "2" + NextSequenceValue('MH_seq02'));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;} else if (fieldValue == "3") {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;return concatenate("SMH-" + "3" + NextSequenceValue('MH_seq03'));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;} else if (fieldValue == "4") {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;return concatenate("SMH-" + "4" + NextSequenceValue('MH_seq04'));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;} else if (fieldValue == "5") {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;return concatenate("SMH-" + "5" + NextSequenceValue('MH_seq05'));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;} else if (fieldValue == "6") {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;return concatenate("SMH-" + "6" + NextSequenceValue('MH_seq06'));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;} else {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;return null;} // Or handle other cases as needed&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 16:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-is-not-working-for-updating-id/m-p/1633951#M97315</guid>
      <dc:creator>AmandaParisi</dc:creator>
      <dc:date>2025-07-17T16:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: attribute rule is not working for updating id field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-is-not-working-for-updating-id/m-p/1633959#M97317</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/37962"&gt;@AmandaParisi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From a surface level look, it could be that your values you're wanting to check are integers and not strings, you may be able to convert the value into text using:&lt;/P&gt;&lt;P&gt;var fieldValue = Text($feature.WJCUD_AREA);&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 16:29:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-is-not-working-for-updating-id/m-p/1633959#M97317</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-07-17T16:29:44Z</dc:date>
    </item>
  </channel>
</rss>

