<?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: How to deal with dots (.) in featureclass and feature dataset names in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-deal-with-dots-in-featureclass-and-feature/m-p/1109211#M62702</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;dots/periods are not support as feature class names.&amp;nbsp; Letters, numbers and underscores are supported:&amp;nbsp;&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/defining-feature-class-properties.htm#GUID-E7ABC742-90A2-4480-B400-C2F7B0DA6ACE" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/defining-feature-class-properties.htm#GUID-E7ABC742-90A2-4480-B400-C2F7B0DA6ACE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since your source is an SDE geodatabase, I suspect the "&lt;SPAN&gt;CorporateGIS.AMFP." portion is database instance and owner?&amp;nbsp; You would either need to replace those dots with something else, or save that feature class as just "GeotechDraCRB2013_14" and maybe put the fully qualified name in the alias.&amp;nbsp; If you are going to use this FGDB to restore the data back to SDE at some point, that first portion will be recreated as you see it now, if the data is loaded back to the same instance and with the same owner account name (as configured in the .sde connection file that you use).&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 14:00:44 GMT</pubDate>
    <dc:creator>Steve_Salas</dc:creator>
    <dc:date>2021-10-20T14:00:44Z</dc:date>
    <item>
      <title>How to deal with dots (.) in featureclass and feature dataset names</title>
      <link>https://community.esri.com/t5/python-questions/how-to-deal-with-dots-in-featureclass-and-feature/m-p/1109181#M62701</link>
      <description>&lt;P&gt;I'm trying to export data from an SDE database to FGDB using arcpy, however the feature datasets and featureclasses have dots in the names such as 'CorporateGIS.AMFP.GeotechDraCRB2013_14' which is giving errors when I try to use them for the new feature data sets:&lt;/P&gt;&lt;P&gt;ERROR 999999: Error executing function. The table name is invalid&lt;/P&gt;&lt;P&gt;I need to be able to restore the data back to SDE so would like to use the names as is if possible - rather than replacing with something like underscores.&lt;/P&gt;&lt;P&gt;Here's a sample of what I'm doing in code&lt;/P&gt;&lt;PRE&gt;import arcpy, os, sys

arcpy.env.workspace = "D:\Conns\CorporateGIS.sde"

outFolderPath = r"H:\GIS_Export"
outName = "CorporateGIS_cpy.gdb"

GDB_path = os.path.join(outFolderPath, outName)
datasetList = arcpy.ListDatasets("*", "Feature")
for fd in datasetList:
    
    arcpy.CreateFeatureDataset_management(GDB_path, fd)
     &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;How do I keep the names as ther are with the dots?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 13:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-deal-with-dots-in-featureclass-and-feature/m-p/1109181#M62701</guid>
      <dc:creator>RobertHoltom1</dc:creator>
      <dc:date>2021-10-20T13:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to deal with dots (.) in featureclass and feature dataset names</title>
      <link>https://community.esri.com/t5/python-questions/how-to-deal-with-dots-in-featureclass-and-feature/m-p/1109211#M62702</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;dots/periods are not support as feature class names.&amp;nbsp; Letters, numbers and underscores are supported:&amp;nbsp;&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/defining-feature-class-properties.htm#GUID-E7ABC742-90A2-4480-B400-C2F7B0DA6ACE" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/defining-feature-class-properties.htm#GUID-E7ABC742-90A2-4480-B400-C2F7B0DA6ACE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since your source is an SDE geodatabase, I suspect the "&lt;SPAN&gt;CorporateGIS.AMFP." portion is database instance and owner?&amp;nbsp; You would either need to replace those dots with something else, or save that feature class as just "GeotechDraCRB2013_14" and maybe put the fully qualified name in the alias.&amp;nbsp; If you are going to use this FGDB to restore the data back to SDE at some point, that first portion will be recreated as you see it now, if the data is loaded back to the same instance and with the same owner account name (as configured in the .sde connection file that you use).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 14:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-deal-with-dots-in-featureclass-and-feature/m-p/1109211#M62702</guid>
      <dc:creator>Steve_Salas</dc:creator>
      <dc:date>2021-10-20T14:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to deal with dots (.) in featureclass and feature dataset names</title>
      <link>https://community.esri.com/t5/python-questions/how-to-deal-with-dots-in-featureclass-and-feature/m-p/1109223#M62703</link>
      <description>&lt;P&gt;Hey Robert&lt;/P&gt;&lt;P&gt;what if you try this. That should give you a "clean" name for your FGDB&lt;/P&gt;&lt;LI-CODE lang="c"&gt;for fd in datasetList:
    print(fd)
    fdSplit = fd.split('.')
    print(fdSplit[2])
    arcpy.CreateFeatureDataset_management(outFolderPath, fdSplit[2])&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Oct 2021 14:19:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-deal-with-dots-in-featureclass-and-feature/m-p/1109223#M62703</guid>
      <dc:creator>DominicRobergeIADOT</dc:creator>
      <dc:date>2021-10-20T14:19:41Z</dc:date>
    </item>
  </channel>
</rss>

