<?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 Substituting Partial Text in Attribute Table in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/substituting-partial-text-in-attribute-table/m-p/545575#M23901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ARCmap, if I recall while in editing mode, in the Attribute table one could do a "&lt;STRONG&gt;Search &amp;amp; Replace&lt;/STRONG&gt;" for a specific text you may have in a field using the standard&amp;nbsp;&lt;STRONG&gt;Ctrl-H&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In Arcmap Pro, that doesn't seem to work at all&amp;nbsp;anymore and the way to supposedly do it is to hit the 3 Bars in the top right of the Attribute Table and select the "&lt;STRONG&gt;Find &amp;amp; Replace&lt;/STRONG&gt;".&amp;nbsp; Not sure why, but mine is grayed out and wondering why that is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think you can do it in the&amp;nbsp;&lt;STRONG&gt;Calculate Field&lt;/STRONG&gt; under the &lt;STRONG&gt;Code Block&lt;/STRONG&gt;, but&amp;nbsp;I keep coming up with a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"WARNING 002858: Certain rows set to NULL due to error while evaluating python expression:&amp;nbsp; &amp;nbsp;File "&amp;lt;string&amp;gt;", line 3, in replace" &lt;/STRONG&gt;error using something simple like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NAME =&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;replace (!NAME!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code Block&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0022ff;"&gt;import&lt;/SPAN&gt; re&lt;BR /&gt;&lt;SPAN style="color: #0022ff;"&gt;def &lt;/SPAN&gt;replace(val):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: #0022ff;"&gt;return&lt;/SPAN&gt; re.sub ( 'TEXT A', 'text b', val)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I also looked at causes for this and none of these seem to apply from the &lt;EM&gt;(&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/data/tables/fundamentals-of-field-calculations.htm" title="https://pro.arcgis.com/en/pro-app/help/data/tables/fundamentals-of-field-calculations.htm"&gt;Fundamentals of field calculations—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;)&amp;nbsp;&lt;/EM&gt;of why the&amp;nbsp;&lt;STRONG&gt;Ctrl-F &lt;/STRONG&gt;or&lt;STRONG&gt; Ctrl-H&lt;/STRONG&gt; doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The field I have is a text field I can individually edit manually or use&amp;nbsp;&lt;STRONG&gt;Calculate Field&amp;nbsp;&lt;/STRONG&gt;to change the data as a whole.&amp;nbsp; It's not joined, or anything other than just a text field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;UL style="color: #4c4c4c; background-color: #ffffff; font-size: 0.9375rem; margin-left: 0.775rem; margin-bottom: 1.55rem;"&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;A field that is managed by ArcGIS cannot be edited manually. Consequently, you cannot calculate field values for the ObjectID (OID or FID) field or the Shape_Length and Shape_Area fields for a geodatabase feature class.&lt;/LI&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;The table's data source is read-only, write access can't be established to the folder or geodatabase, or the data source is in a format that can't normally be modified.&lt;/LI&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;The field belongs to a table that has been joined to your table. You can only calculate values for fields in the origin table.&lt;/LI&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;The field may be a raster, BLOB, or Global ID type, which cannot be calculated.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2020 20:13:55 GMT</pubDate>
    <dc:creator>PeteJordan</dc:creator>
    <dc:date>2020-06-30T20:13:55Z</dc:date>
    <item>
      <title>Substituting Partial Text in Attribute Table</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/substituting-partial-text-in-attribute-table/m-p/545575#M23901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ARCmap, if I recall while in editing mode, in the Attribute table one could do a "&lt;STRONG&gt;Search &amp;amp; Replace&lt;/STRONG&gt;" for a specific text you may have in a field using the standard&amp;nbsp;&lt;STRONG&gt;Ctrl-H&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In Arcmap Pro, that doesn't seem to work at all&amp;nbsp;anymore and the way to supposedly do it is to hit the 3 Bars in the top right of the Attribute Table and select the "&lt;STRONG&gt;Find &amp;amp; Replace&lt;/STRONG&gt;".&amp;nbsp; Not sure why, but mine is grayed out and wondering why that is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think you can do it in the&amp;nbsp;&lt;STRONG&gt;Calculate Field&lt;/STRONG&gt; under the &lt;STRONG&gt;Code Block&lt;/STRONG&gt;, but&amp;nbsp;I keep coming up with a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"WARNING 002858: Certain rows set to NULL due to error while evaluating python expression:&amp;nbsp; &amp;nbsp;File "&amp;lt;string&amp;gt;", line 3, in replace" &lt;/STRONG&gt;error using something simple like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NAME =&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;replace (!NAME!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code Block&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0022ff;"&gt;import&lt;/SPAN&gt; re&lt;BR /&gt;&lt;SPAN style="color: #0022ff;"&gt;def &lt;/SPAN&gt;replace(val):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: #0022ff;"&gt;return&lt;/SPAN&gt; re.sub ( 'TEXT A', 'text b', val)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I also looked at causes for this and none of these seem to apply from the &lt;EM&gt;(&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/data/tables/fundamentals-of-field-calculations.htm" title="https://pro.arcgis.com/en/pro-app/help/data/tables/fundamentals-of-field-calculations.htm"&gt;Fundamentals of field calculations—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;)&amp;nbsp;&lt;/EM&gt;of why the&amp;nbsp;&lt;STRONG&gt;Ctrl-F &lt;/STRONG&gt;or&lt;STRONG&gt; Ctrl-H&lt;/STRONG&gt; doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The field I have is a text field I can individually edit manually or use&amp;nbsp;&lt;STRONG&gt;Calculate Field&amp;nbsp;&lt;/STRONG&gt;to change the data as a whole.&amp;nbsp; It's not joined, or anything other than just a text field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;UL style="color: #4c4c4c; background-color: #ffffff; font-size: 0.9375rem; margin-left: 0.775rem; margin-bottom: 1.55rem;"&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;A field that is managed by ArcGIS cannot be edited manually. Consequently, you cannot calculate field values for the ObjectID (OID or FID) field or the Shape_Length and Shape_Area fields for a geodatabase feature class.&lt;/LI&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;The table's data source is read-only, write access can't be established to the folder or geodatabase, or the data source is in a format that can't normally be modified.&lt;/LI&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;The field belongs to a table that has been joined to your table. You can only calculate values for fields in the origin table.&lt;/LI&gt;&lt;LI style="margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;The field may be a raster, BLOB, or Global ID type, which cannot be calculated.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 20:13:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/substituting-partial-text-in-attribute-table/m-p/545575#M23901</guid>
      <dc:creator>PeteJordan</dc:creator>
      <dc:date>2020-06-30T20:13:55Z</dc:date>
    </item>
  </channel>
</rss>

