<?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: Aliases are not changing in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495470#M70876</link>
    <description>&lt;P&gt;Try altering your script to output the new field alias names only, then run the alter field tool by hand for a few of them using that output. Does it fail silently again, or do you get an error?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2024 16:10:34 GMT</pubDate>
    <dc:creator>DavidSolari</dc:creator>
    <dc:date>2024-06-20T16:10:34Z</dc:date>
    <item>
      <title>Aliases are not changing</title>
      <link>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495408#M70873</link>
      <description>&lt;P&gt;I wrote a code to modify field aliases and there are multiple layers, some with great many columns,&amp;nbsp; which require alias modification.&lt;/P&gt;&lt;P&gt;Below is the main part of the code which is supposed to be responsible for alias modificaiton. The issue is that after the process is run the aliases in on layers tables have not changed and I can't see why that is!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Layers is a list of layer names in the gdb. The &lt;STRONG&gt;new_alias&lt;/STRONG&gt; is to replace the current alias of the columns.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;with open(logpath, 'a') as cur:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; for layer in layers:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; layer = os.path.join(gdb, f"{fds}/{layer}")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print(f'Layer Name: {layer}', end=f'\n{"="*100}\n')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cur.write(f'\nLayer Name: {layer}\n{"="*100}\n')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; columns = arcpy.ListFields(layer)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for field in columns:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if not field.required and len(field.name) &amp;gt; 20:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;new_alias&lt;/STRONG&gt; = field.aliasName.replace("_", " ").replace('PCT', '%').replace('plus', '+')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cur.write(f'Pre-processed Alias: {field.aliasName}\n')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arcpy.management.AlterField(in_table=layer&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,field=field.name&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,new_field_alias=new_alias)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print(f'Alias: {new_alias}\nField: {field.name}\n{"-" * 50}')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cur.write(f'Alias: {new_alias}\nField: {field.name}\n{"-" * 50}\n')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Would you please help me on why this is not working. I am using ArcGISPro?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 15:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495408#M70873</guid>
      <dc:creator>Seyed-MahdySadraddini</dc:creator>
      <dc:date>2024-06-20T15:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aliases are not changing</title>
      <link>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495470#M70876</link>
      <description>&lt;P&gt;Try altering your script to output the new field alias names only, then run the alter field tool by hand for a few of them using that output. Does it fail silently again, or do you get an error?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 16:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495470#M70876</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2024-06-20T16:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aliases are not changing</title>
      <link>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495483#M70879</link>
      <description>&lt;PRE&gt;&lt;SPAN class=""&gt;ExecuteError&lt;/SPAN&gt;: Failed to execute. Parameters are not valid.
ERROR 000735: Field Name: Value is required
Failed to execute (AlterField).&lt;/PRE&gt;&lt;P&gt;So, I commented out the&amp;nbsp;&lt;SPAN&gt;field=field.name line and it is causing an error! field name is required based on the doc.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 16:29:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495483#M70879</guid>
      <dc:creator>Seyed-MahdySadraddini</dc:creator>
      <dc:date>2024-06-20T16:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aliases are not changing</title>
      <link>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495551#M70882</link>
      <description>&lt;P&gt;If your log is showing that the alias is updated, it probably is actually updated. If you have an arcpro instance open, those changes won't be seen until you re open the project though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if it's not the offending line might be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if not field.required and len(field.name) &amp;gt; 20:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you're checking field.name but you probably mean to be checking field.aliasName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did just re-write your code to check this and this works if you restart so here's a class object that takes a gdb path, a logpath, and an optional callable for string re-writes:&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;&lt;LI-CODE lang="python"&gt;import arcpy
import os
            
class AliasUpdater:
    def __init__(self, gdb: os.PathLike, logpath: os.PathLike=None, update_rule: callable=None) -&amp;gt; None:
        self.gdb = gdb
        if not arcpy.Exists(self.gdb):
            raise FileNotFoundError(f'{self.gdb} does not exist')
        
        # Set workspace and get all datasets
        arcpy.env.workspace = self.gdb
        self.fds = arcpy.ListDatasets()
        
        # Initialize log
        self.log = []
        self.logpath = logpath
        
        # Get All Features and Tables
        self.features: list = arcpy.ListFeatureClasses()
        self.features.extend(arcpy.ListTables())
        for ds in self.fds:
            self.features.extend([f"{ds}\\{fc}" for fc in arcpy.ListFeatureClasses(feature_dataset=ds)])

        
        # Accept a callable to update the alias
        self.update_rule: callable = update_rule if update_rule else self._alias_rule

    def update_all_aliases(self):
        # Update Aliases for all features
        for feature in self.features:
            self._update_feature_alias(feature)
        if self.logpath:
            self._log()
    
    def _update_feature_alias(self, feature: os.PathLike):
        # Print Feature Name and Log
        self._print(f'Feature Name: {feature}\n{"="*100}')
        for field in arcpy.ListFields(feature):
            
            # Skip if field is required (Add additional rules here if needed)
            if field.required: continue
            
            # Update Alias
            self._update_field_alias(feature, field)
        
    def _update_field_alias(self, feature: os.PathLike, field: arcpy.Field):
        # Run current alias through alias rule
        new_alias = self.update_rule(field.aliasName)
        
        # If new alias is the same as the current alias, return
        if new_alias == field.aliasName: return
        
        # Update alias
        self._print(f'\tUpdating {field.name} alias from {field.aliasName} to {new_alias}')
        arcpy.management.AlterField(feature, field.name, new_field_alias=new_alias)
            
    def _alias_rule(self, alias: str) -&amp;gt; str:
        """ Change this to do any string processing you want on the alias """
        return alias.replace("_", " ").replace('PCT', '%').replace('plus', '+')
    
    def _print(self, message: str):
        """Prints message and appends to log"""
        print(message)
        self.log.append(message)
    
    def _log(self):
        """Writes log to logpath if provided"""
        with open(self.logpath, 'a') as f:
            f.write('\n'.join(self.log))
            
def main():
    def alt_rule(alias: str) -&amp;gt; str:
        return alias.upper()
    gdb = r'&amp;lt;path to gdb&amp;gt;'
    logpath = r'&amp;lt;path to log&amp;gt;'
    updater = AliasUpdater(gdb, logpath=logpath)
    updater.update_all_aliases()
    
    alt_updater = AliasUpdater(gdb, logpath=logpath, update_rule=alt_rule)
    alt_updater.update_all_aliases()
    
if __name__ == '__main__':
    main()&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 18:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495551#M70882</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2024-06-20T18:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aliases are not changing</title>
      <link>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495587#M70883</link>
      <description>&lt;P&gt;Thanks for the code. I am testing it right now on the data I am working with. I am running it outside ArcGIS from Jupyter Notebook. Hopefully it works , otherwise I will run it from ArcGIS GUI to see if aliases change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will update you on it! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 19:01:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495587#M70883</guid>
      <dc:creator>Seyed-MahdySadraddini</dc:creator>
      <dc:date>2024-06-20T19:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Aliases are not changing</title>
      <link>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495665#M70891</link>
      <description>&lt;P&gt;This code worked only when I used it&amp;nbsp;&lt;STRONG&gt;within&lt;/STRONG&gt; ArcGIS environment. Outside ArcGIS environment this code fails.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is worth noting that due to overhead, running the code inside the ArcGIS environment is significantly slower than running it outside ArcGIS.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 21:05:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495665#M70891</guid>
      <dc:creator>Seyed-MahdySadraddini</dc:creator>
      <dc:date>2024-06-20T21:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aliases are not changing</title>
      <link>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495718#M70892</link>
      <description>&lt;P&gt;Here's a version that uses da.Walk to get the full workspace path for each object. Also added a check to make sure the item you're updating the alias for is a FeatureClass or Table (skips rasters and topologies):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
import os
            
class AliasUpdater:
    def __init__(self, gdb: os.PathLike, logpath: os.PathLike=None, update_rule: callable=None) -&amp;gt; None:
        self.gdb = gdb
        if not arcpy.Exists(self.gdb):
            raise FileNotFoundError(f'{self.gdb} does not exist')
        
        self.features = {}
        for root, _, features in arcpy.da.Walk(self.gdb):
            self.features.update({f: os.path.join(root, f) for f in features})
        
        # Initialize log
        self.log = []
        self.logpath = logpath
        
        # Accept a callable to update the alias
        self.update_rule: callable = update_rule if update_rule else self._alias_rule

    def update_all_aliases(self):
        # Update Aliases for all features
        for feature in self.features.items():
            if arcpy.Describe(feature[1]).dataType not in ['FeatureClass', 'Table']: continue
            self._update_feature_alias(feature)
        if self.logpath:
            self._log()
    
    def _update_feature_alias(self, feature: tuple[str, os.PathLike]):
        # Print Feature Name and Log
        name, path = feature
        self._print(f'Feature Name: {name}\n{"="*100}')
        for field in arcpy.ListFields(path):
            
            # Skip if field is required (Add additional rules here if needed)
            if field.required: continue
            
            # Update Alias
            self._update_field_alias(feature, field)
        
    def _update_field_alias(self, feature: tuple[str, os.PathLike], field: arcpy.Field):
        _, path = feature
        # Run current alias through alias rule
        new_alias = self.update_rule(field.aliasName)
        
        # If new alias is the same as the current alias, return
        if new_alias == field.aliasName: self._print(f'\t{field.name} alias is up to date'); return
        
        # Update alias
        self._print(f'\tUpdating {field.name} alias from {field.aliasName} to {new_alias}')
        arcpy.management.AlterField(path, field.name, new_field_alias=new_alias)
            
    def _alias_rule(self, alias: str) -&amp;gt; str:
        """ Change this to do any string processing you want on the alias """
        return alias.replace("_", " ").replace('PCT', '%').replace('plus', '+')
    
    def _print(self, message: str):
        """Prints message and appends to log"""
        print(message)
        self.log.append(message)
    
    def _log(self):
        """Writes log to logpath if provided"""
        with open(self.logpath, 'a') as f:
            f.write('\n'.join(self.log))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 23:04:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1495718#M70892</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2024-06-20T23:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aliases are not changing</title>
      <link>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1496167#M70905</link>
      <description>&lt;P&gt;Not sure if this is supposed to work outside ArcGIS, but anyhow I tried it outside ArcGIS and it doesn't seem to be changing the aliases on the table after I restart ArcGIS and check the tables although I did not go through the full cycle of the shapes on gdb as I had to interrupt it because I noticed there is an unwanted line of code which I need to modify to ```if len(field.name) &amp;gt; 20```:&lt;/P&gt;&lt;PRE&gt;# If new alias is the same as the current alias, return
        if new_alias == field.aliasName: self._print(f'\t{field.name} alias is up to date'); return&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 21:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1496167#M70905</guid>
      <dc:creator>Seyed-MahdySadraddini</dc:creator>
      <dc:date>2024-06-21T21:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aliases are not changing</title>
      <link>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1496168#M70906</link>
      <description>&lt;P&gt;# If the length of the field name is less than 20, return&amp;nbsp;&lt;BR /&gt;if len(field.aliasName) &amp;lt; 20: self._print(f'\t{field.name} alias is up to date'); return&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 21:10:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1496168#M70906</guid>
      <dc:creator>Seyed-MahdySadraddini</dc:creator>
      <dc:date>2024-06-21T21:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Aliases are not changing</title>
      <link>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1496639#M70909</link>
      <description>&lt;P&gt;I also want to offer the code that I wrote and it is seemingly guaranteed to work, hopefully for any kind of dataset, and no matter the size. Here I don't bother logging the layer name and field names and aliases. This code takes a very long time to run as I am running it from the python window on ArcGIS. And the code does not work outside ArcGIS environment in terms of changing the display name (alias) on the tables!&lt;/P&gt;&lt;P&gt;As for the other solutions demonstrated above, I have tested them but they are not guaranteed to fix the displayed aliases although I checked the layers individually for their aliases and they had been modified, but the table still showed unmodified aliases. Not sure exactly why it worked the first time for 4 layers I tested it on, then it stopped working!!!!!!?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now to the code:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="4"&gt;import arcgis, arcpy, os&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="4"&gt;arcpy.env.overwriteOutput = True&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="4"&gt;layers = ["poverty_6574", "poverty_5564", "poverty_75plus", "poverty_15plus"]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="4"&gt;for layer in layers:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="4"&gt;&amp;nbsp; &amp;nbsp; print(layer, end='\n\n')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="4"&gt;&amp;nbsp; &amp;nbsp; columns = arcpy.ListFields(layer)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="4"&gt;&amp;nbsp; &amp;nbsp; print("Changing the field alias by replacing \"_\" with \" \" as well as other necessary changes")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="4"&gt;&amp;nbsp; &amp;nbsp; for field in columns:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="4"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if not field.required:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="4"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new_alias = field.aliasName.replace("_", " ").replace('PCT', '%').replace('++','').replace('+','').replace('15','15+').replace('75',' 75+')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="4"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arcpy.management.AlterField(layer, field.name, new_field_alias=new_alias)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="4"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print(field.aliasName)&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 24 Jun 2024 16:58:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1496639#M70909</guid>
      <dc:creator>Seyed-MahdySadraddini</dc:creator>
      <dc:date>2024-06-24T16:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aliases are not changing</title>
      <link>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1497794#M70922</link>
      <description>&lt;P&gt;I believe I have found the source of inconsistency... hidden in plain sight!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The codes above may be working very well both inside and outside ArcGIS environment, including my own original code above. What I was looking at after the runtime finished were the tables of the already existing feature classes, or layers, on the Contents panel in the software. But I believe those shapes/layers are not the original instances of the layers on the GDB which are modified! Hence, I may not see the changes on the tables of those instances;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dragged and dropped in the layers again directly from the GDB and those tables show the modified aliases, just as &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/607017"&gt;@HaydenWelch&lt;/a&gt;&amp;nbsp;mentioned in his/her solution!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 18:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/aliases-are-not-changing/m-p/1497794#M70922</guid>
      <dc:creator>Seyed-MahdySadraddini</dc:creator>
      <dc:date>2024-06-26T18:19:11Z</dc:date>
    </item>
  </channel>
</rss>

