<?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: Existing field name cannot be modified in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/existing-field-name-cannot-be-modified/m-p/1577630#M12519</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the tool I am working on is a CoreHost application, hence I cannot directly call the geoprocessing tool in the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done a work-around solution where I create new fields with the name I want, then use updateCursor to copy the existing fields value to the new fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not due to CoreHost application, I would perhaps also use the method as you suggested.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 22:25:06 GMT</pubDate>
    <dc:creator>anbinh</dc:creator>
    <dc:date>2025-01-21T22:25:06Z</dc:date>
    <item>
      <title>Existing field name cannot be modified</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/existing-field-name-cannot-be-modified/m-p/1577310#M12511</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"ProConcepts DDL" documentation suggests that "&lt;STRONG&gt;Field properties such as name, alias name, length, and type of some existing fields in tables or feature classes can be modified using SchemaBuilder.Modify(TableDescription, String, FieldDescription) method.&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it does not seem to be the case. When I try to modify the existing field name using SchemaBuilder, I would get the error (Visual Studio .NET) saying "'Description.Name' cannot be assigned -it is read only.". The Pro SDK documentation -&amp;gt;&amp;nbsp;&lt;SPAN&gt;Name Property (FieldDescription) also suggests that the name property is read-only.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With the same dataset, however, I can change the field name in ArcGIS Pro directly. Just wondering if it should be considered as a defect that Pro SDK team should investigate? Or if there is a better way of changing the field name using SDK?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 00:12:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/existing-field-name-cannot-be-modified/m-p/1577310#M12511</guid>
      <dc:creator>anbinh</dc:creator>
      <dc:date>2025-01-21T00:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Existing field name cannot be modified</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/existing-field-name-cannot-be-modified/m-p/1577330#M12513</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use Alter Field geoprocessing tool:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.3/tool-reference/data-management/alter-field-properties.htm" target="_blank"&gt;Alter Field (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How to call geoprocessing tool here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic9385.html" target="_blank"&gt;ExecuteToolAsync(String,IEnumerable&amp;lt;String&amp;gt;,IEnumerable&amp;lt;KeyValuePair&amp;lt;String,String&amp;gt;&amp;gt;,CancelableProgressor,GPExecuteToolFlags) Method—ArcGIS Pro&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 06:39:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/existing-field-name-cannot-be-modified/m-p/1577330#M12513</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-01-21T06:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Existing field name cannot be modified</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/existing-field-name-cannot-be-modified/m-p/1577453#M12516</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/551674"&gt;@anbinh&lt;/a&gt;, Please refer to the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic13333.html" target="_self"&gt;Modify(TableDescription, String, FieldDescription)&lt;/A&gt; method for an existing field modification. The API reference also has an example to modify a field.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 17:09:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/existing-field-name-cannot-be-modified/m-p/1577453#M12516</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2025-01-21T17:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Existing field name cannot be modified</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/existing-field-name-cannot-be-modified/m-p/1577624#M12518</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read the reference. It says in the documentation that field name is read only. However, there is discrepancy in the Github ProConcepts page (&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-DDL" target="_blank"&gt;ProConcepts DDL · Esri/arcgis-pro-sdk Wiki&lt;/A&gt;) as it suggests that field name can be changed, which I am almost certain that Github Proconcepts page needs to be corrected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 22:21:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/existing-field-name-cannot-be-modified/m-p/1577624#M12518</guid>
      <dc:creator>anbinh</dc:creator>
      <dc:date>2025-01-21T22:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Existing field name cannot be modified</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/existing-field-name-cannot-be-modified/m-p/1577630#M12519</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the tool I am working on is a CoreHost application, hence I cannot directly call the geoprocessing tool in the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done a work-around solution where I create new fields with the name I want, then use updateCursor to copy the existing fields value to the new fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not due to CoreHost application, I would perhaps also use the method as you suggested.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 22:25:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/existing-field-name-cannot-be-modified/m-p/1577630#M12519</guid>
      <dc:creator>anbinh</dc:creator>
      <dc:date>2025-01-21T22:25:06Z</dc:date>
    </item>
  </channel>
</rss>

