<?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: Enterprise Geodatabase feature class naming in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/enterprise-geodatabase-feature-class-naming/m-p/1143145#M63724</link>
    <description>&lt;P&gt;This works great as I can use the same code for different database names and owner names. Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 17:19:27 GMT</pubDate>
    <dc:creator>Boyang_Wang</dc:creator>
    <dc:date>2022-02-11T17:19:27Z</dc:date>
    <item>
      <title>Enterprise Geodatabase feature class naming</title>
      <link>https://community.esri.com/t5/python-questions/enterprise-geodatabase-feature-class-naming/m-p/1143054#M63722</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not sure if this is typical, but whenever I create a feature class in my enterprise geodatabase, its name will have the database and username added. For example, if I create a feature class called FC, its name will become "database.username.FC".&lt;/P&gt;&lt;P&gt;This creates a problem when I try to use python to backup my&amp;nbsp;enterprise geodatabase feature classes using&amp;nbsp;FeatureClassToFeatureClass. I don't want my backup feature class name has "database.username." in it. How can I get the feature class name only without using&amp;nbsp;string manipulation?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 15:12:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enterprise-geodatabase-feature-class-naming/m-p/1143054#M63722</guid>
      <dc:creator>Boyang_Wang</dc:creator>
      <dc:date>2022-02-11T15:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Geodatabase feature class naming</title>
      <link>https://community.esri.com/t5/python-questions/enterprise-geodatabase-feature-class-naming/m-p/1143122#M63723</link>
      <description>&lt;P&gt;For enterprise GDBs (at least in SQL Server in my case) this is common, but usually its not an issue, although I haven't tried Feature Class to Feature Class backup using a python script.&amp;nbsp; That being said....&lt;/P&gt;&lt;P&gt;In Python the output name is an input into the Feature Class to Feature Class function:&lt;/P&gt;&lt;PRE&gt;arcpy.conversion.FeatureClassToFeatureClass(in_features, out_path, out_name, {where_clause}, {field_mapping}, {config_keyword})&lt;/PRE&gt;&lt;P&gt;So if you have a variable something like txtInFeatures (to use as the 'in_features' in the function reference above) and its value is in the form "DatabaseName.Owner.FeatureClassName", I would use something like this to generate the txtOutName (to use as the 'out_name' in the function reference above)&lt;/P&gt;&lt;P&gt;txtOutName = txtInFeatures[txtInFeatures.rindex('.')+1:]&lt;/P&gt;&lt;P&gt;below is a snip of a test I ran in a python emulator. Code on the left, result on the right.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_1-1644597986166.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33707i093C0D6CC9071D7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_1-1644597986166.png" alt="KimGarbade_1-1644597986166.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 16:53:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enterprise-geodatabase-feature-class-naming/m-p/1143122#M63723</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-02-11T16:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Geodatabase feature class naming</title>
      <link>https://community.esri.com/t5/python-questions/enterprise-geodatabase-feature-class-naming/m-p/1143145#M63724</link>
      <description>&lt;P&gt;This works great as I can use the same code for different database names and owner names. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 17:19:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enterprise-geodatabase-feature-class-naming/m-p/1143145#M63724</guid>
      <dc:creator>Boyang_Wang</dc:creator>
      <dc:date>2022-02-11T17:19:27Z</dc:date>
    </item>
  </channel>
</rss>

