<?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: edit selected attributes using rules in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639272#M97869</link>
    <description>&lt;P&gt;Oh, this is beautiful! I wish I had your skills&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;! Thanks a million!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Aug 2025 16:07:55 GMT</pubDate>
    <dc:creator>dsinha</dc:creator>
    <dc:date>2025-08-05T16:07:55Z</dc:date>
    <item>
      <title>edit selected attributes using rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639213#M97858</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to join a table to feature class using a field (parcel ID) that is common to both of them. However, around 700+ parcel IDs (out of 6500+) are formatted incorrectly. For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;51-23-0600-&lt;SPAN&gt;&lt;STRONG&gt;015-UI15 &lt;/STRONG&gt;vs.&amp;nbsp;&lt;/SPAN&gt;51-23-0600-&lt;SPAN&gt;&lt;STRONG&gt;015UI15&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;06-20-1798-&lt;STRONG&gt;139-EX&amp;nbsp;&lt;/STRONG&gt;vs. 06-20-1798-&lt;STRONG&gt;139EX&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I am trying to figure out how to edit these unmatched values in ArcGIS Pro so that the join proceeds. Is there a way to apply a rule - e.g. remove the 15th character (&lt;STRONG&gt;-&lt;/STRONG&gt;) from the values on the left so that they match the values on the right?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 14:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639213#M97858</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2025-08-05T14:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: edit selected attributes using rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639219#M97860</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/786600"&gt;@dsinha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If these are incorrect, would it be possible to just fix them? If the - is always at the 15th slot, you could use a calculate field function to fix this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def remove(item):
    if item and len(item) &amp;gt;= 15 and item[14] == "-":
        return item[:14] + item[15:]
    return item&lt;/LI-CODE&gt;&lt;P&gt;I would test this on a small subset of data to ensure this does what you're expecting!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 15:05:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639219#M97860</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-08-05T15:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: edit selected attributes using rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639236#M97862</link>
      <description>&lt;P&gt;Thanks so much for your help&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;I tried to run the expression but I got an error message (though the expression is valid):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dsinha_1-1754407113009.png" style="width: 712px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137859i5AB5F19E186CBEBF/image-dimensions/712x396?v=v2" width="712" height="396" role="button" title="dsinha_1-1754407113009.png" alt="dsinha_1-1754407113009.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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 15:18:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639236#M97862</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2025-08-05T15:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: edit selected attributes using rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639244#M97863</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/786600"&gt;@dsinha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is my bad I should have attached a screenshot, it should look something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodyPatterson_0-1754407599572.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137861i396A7C50BFB61226/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodyPatterson_0-1754407599572.png" alt="CodyPatterson_0-1754407599572.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 15:26:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639244#M97863</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-08-05T15:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: edit selected attributes using rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639249#M97865</link>
      <description>&lt;P&gt;Thanks so much for sending the screenshot&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;. Worked like a charm!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 15:30:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639249#M97865</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2025-08-05T15:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: edit selected attributes using rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639254#M97866</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;&amp;nbsp;just curious - what would the expression look like if I want to remove any "-" after the 14th character?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 15:39:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639254#M97866</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2025-08-05T15:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: edit selected attributes using rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639260#M97867</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/786600"&gt;@dsinha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should look something like this, you'd just have to rebuild the string which this does:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def remove(item):
    if item and len(item) &amp;gt; 14:
        prefix = item[:14]
        suffix = item[14:].replace("-", "")
        return prefix + suffix
    return item&lt;/LI-CODE&gt;&lt;P&gt;As with all code, just make sure that this is valid for your purposes and doesn't indirectly edit anything else!&lt;/P&gt;&lt;P&gt;&amp;nbsp;Cody&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 15:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639260#M97867</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-08-05T15:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: edit selected attributes using rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639272#M97869</link>
      <description>&lt;P&gt;Oh, this is beautiful! I wish I had your skills&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;! Thanks a million!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 16:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-selected-attributes-using-rules/m-p/1639272#M97869</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2025-08-05T16:07:55Z</dc:date>
    </item>
  </channel>
</rss>

