<?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: Alter Field GP Tool on Spatial Views in Python Not Working in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/alter-field-gp-tool-on-spatial-views-in-python-not/m-p/365812#M28893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit late, but I don't believe &lt;CODE&gt;AlterField_management &lt;/CODE&gt;supports views - the input parameter is a Table View.&amp;nbsp; The input parameter for &lt;CODE&gt;MakeTableView_management&lt;/CODE&gt; (which would go into &lt;SPAN style="font-family: monospace;"&gt;AlterField_management&lt;/SPAN&gt;) is a table or feature class - view is not specified.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you contact Support with this issue?&amp;nbsp; I'd be curious to hear if they had a workaround - it seems reasonable that since the alias of a field in a registered spatial view can be altered in ArcCatalog GUI, then it ought to be possible with GP (if not then it should be!).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Nov 2014 14:46:32 GMT</pubDate>
    <dc:creator>NateArnold</dc:creator>
    <dc:date>2014-11-25T14:46:32Z</dc:date>
    <item>
      <title>Alter Field GP Tool on Spatial Views in Python Not Working</title>
      <link>https://community.esri.com/t5/python-questions/alter-field-gp-tool-on-spatial-views-in-python-not/m-p/365811#M28892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having an issue with the "Aleter Field" gp tool in python. I find that it works fine when running the tool from Desktop or in a model, but as soon as I run it from python, it doesn't work and resets all my alias field back to the field names. This only occurs for spatial views I setup, works fine on feature classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to reproduce&lt;/P&gt;&lt;P&gt;- Setup a spatial view.&lt;/P&gt;&lt;P&gt;- Setup a few field aliases in ArcGIS Desktop for the spatial view.&lt;/P&gt;&lt;P&gt;- Run the "Alter Field" gp tool from python on one field e.g. arcpy.AlterField_management(spatialView, "PERMIT_NUMBER", "", "Permit Number")&lt;/P&gt;&lt;P&gt;- Navigate to the spatial view in ArcGIS Desktop and notice that all the field aliases have been reset to the field names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 06:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alter-field-gp-tool-on-spatial-views-in-python-not/m-p/365811#M28892</guid>
      <dc:creator>ShaunWeston1</dc:creator>
      <dc:date>2014-08-27T06:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Alter Field GP Tool on Spatial Views in Python Not Working</title>
      <link>https://community.esri.com/t5/python-questions/alter-field-gp-tool-on-spatial-views-in-python-not/m-p/365812#M28893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit late, but I don't believe &lt;CODE&gt;AlterField_management &lt;/CODE&gt;supports views - the input parameter is a Table View.&amp;nbsp; The input parameter for &lt;CODE&gt;MakeTableView_management&lt;/CODE&gt; (which would go into &lt;SPAN style="font-family: monospace;"&gt;AlterField_management&lt;/SPAN&gt;) is a table or feature class - view is not specified.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you contact Support with this issue?&amp;nbsp; I'd be curious to hear if they had a workaround - it seems reasonable that since the alias of a field in a registered spatial view can be altered in ArcCatalog GUI, then it ought to be possible with GP (if not then it should be!).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 14:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/alter-field-gp-tool-on-spatial-views-in-python-not/m-p/365812#M28893</guid>
      <dc:creator>NateArnold</dc:creator>
      <dc:date>2014-11-25T14:46:32Z</dc:date>
    </item>
  </channel>
</rss>

