<?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: Correct syntax for coverage in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60701#M4856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;BR /&gt;I was also having issues, more with trying to figure out what "datatype" it wanted when attaching the script to a toolbar.&amp;nbsp; I finally got "Dataset" to work (not coverage like I would have guessed).&amp;nbsp; I am using 10.1 btw.&lt;BR /&gt;&lt;BR /&gt;Simplified code with parameter setup is below.&amp;nbsp; I used "Workspace or Feature Dataset" and "Any Value" for the data type of the other two variables.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Update (caution):&lt;/STRONG&gt;&lt;SPAN&gt; if the coverage is not DOUBLE precision and then CLEANed (with ARC option), the command may not import all records.&amp;nbsp; But with the CLEAN, some lines may get flipped, which for my project is a problem.&amp;nbsp; Just using the BUILD with ARC option didn't improve anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best option for me which doesn't flip line direction is to use the ARCSHAPE command (one the SINGLE or DOUBLE precision coverage....no difference) and then use FeatureClassToFeatureClass to import the shape file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 14:33:59 GMT</pubDate>
    <dc:creator>RebeccaStrauch__GISP</dc:creator>
    <dc:date>2012-10-31T14:33:59Z</dc:date>
    <item>
      <title>Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60687#M4842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a script that looks in a directory, finds coverages, and converts the coverages to a geodatabase. This works perfectly for every feature class in the coverage, except 'arc'. I have tried multiple ways of importing the 'arc' feature class, each time Python tells me it doesn't not exist or is not supported. I am wondering if I'm using the correct syntax, which I had assumed to be similar to a geodatabase. I am using this to refer to the arc feature class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CDMS_Arc = "I:\\Workspace\\Coverage\\Arc"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 21:41:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60687#M4842</guid>
      <dc:creator>SamCoggins1</dc:creator>
      <dc:date>2012-09-04T21:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60688#M4843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you do the export manually through ArcCatalog or ArcMap?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 21:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60688#M4843</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-09-04T21:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60689#M4844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep, manual exports work, only in ArcMap. All tools work through Model builder and as standalone tools, again only in ArcMap, not ArcCatalog...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 22:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60689#M4844</guid>
      <dc:creator>SamCoggins1</dc:creator>
      <dc:date>2012-09-04T22:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60690#M4845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yep, manual exports work, only in ArcMap. All tools work through Model builder and as standalone tools, again only in ArcMap, not ArcCatalog...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So in ArcMap you load the whole coverage and can export the arc, but in ArcCatalog you cannot navigate to the arc feature at all, is that right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 12:53:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60690#M4845</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-09-05T12:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60691#M4846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I'm not explaining this very well... Think I'm going brain dead from banging my head on my desk!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcMap I can open a tool as a standalone, or in model builder and then drag and drop the arc features into the tool, navigate to its location in the directory from within the tool, or use the arc features in a tool by referencing it from the table of contents in ArcMap. Each time the arc file has worked I have not imported any of the other features from the coverage, just the arc's. Which also means I have only opened the arc features in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I export a model as a script, even with ArcMap open the script fails because the 'file arc does not exist or is not supported'. I have tried loading other features from the coverage to a file geodatabase, no problem. Does it first time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did find that I could make a feature class within ArcCatalog and then use the Data Loader (make feature class, right click on new feature, Load Data) to import the arc features. However, I haven't found a Python function that uses the Data Load function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 13:27:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60691#M4846</guid>
      <dc:creator>SamCoggins1</dc:creator>
      <dc:date>2012-09-05T13:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60692#M4847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is this a line coverage or a polygon coverage? I'm assuming polygon since you talk about other features. Using the coverage toolbox, rebuild and/or clean it. Or if you are comfortable with ArcInfo Workstation you can try building and cleaning with that. Is this the only coverage you are having an issue with or is it every arc feature of all your coverages?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if you can post your code you are having problems with that would help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 13:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60692#M4847</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-09-05T13:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60693#M4848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello again...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll see if I can clean the data using your suggestion. The arc file is a line file, it is contained in some coverages, but not in others. Therefore some coverages convert without a problem but my script crashes for others. I'm not sure whether posting the script will do you any good, I've simply written in a line that tells the script that if an 'arc' feature exists then to ignore it, because it gets hung up otherwise. I've also written a standalone script to try and convert the 'arc' features, it also crashes. However, I know the script works because I can use it to convert other feature classes within the coverage to geodatabase feature classes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The coverage I'm using is not the only one containing an 'arc' feature class, there are several others. I cannot convert any of the arc features to a geodatabase feature class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate your help! Thanks, Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 15:17:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60693#M4848</guid>
      <dc:creator>SamCoggins1</dc:creator>
      <dc:date>2012-09-05T15:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60694#M4849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As an example, this is how I export features from a coverage. I navigate to each coverage and make it my current workspace so I simply export by feature class name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;covList = arcpy.ListDatasets()
for cov in covList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = os.path.join(directory, folder, cov)
&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists("polygon"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Converting", cov
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToFeatureClass_conversion("polygon", outPath, cov)
&amp;nbsp;&amp;nbsp;&amp;nbsp; elif arcpy.Exists("arc"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Converting", cov
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToFeatureClass_conversion("arc", outPath, cov)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60694#M4849</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-10T22:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60695#M4850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I hard-coded it for this demonstration ... I can copy over a 'tic' feature from the coverage to the geodatabase, but not the 'arc' feature using this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# Import arcpy module
import arcpy, os

fc = 'Arc'

# Local variables:
CDMS_Arc = r'c:\TEST2\CDMS' + os.sep + fc
CDMS_gdb = r'c:\TEST2\CDMS.gdb' + os.sep + fc

# Process: Feature Class to Geodatabase (multiple)
#arcpy.CopyFeatures_management(CDMS_Arc, CDMS_gdb)
arcpy.FeatureClassToFeatureClass_conversion(CDMS_Arc, r'c:\TEST2\CDMS.gdb', fc)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get this error message when I use either the FeatureClassToFeatureClass or the CopyFeatures (I used one or the other as you'll notice from my code): &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "I:/Q_workspace/Sam_GIS/290812_CoveragetoGDB/Test10.py", line 19, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToFeatureClass_conversion(CDMS_Arc, r'c:\TEST2\CDMS.gdb', fc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\conversion.py", line 1132, in FeatureClassToFeatureClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000732: Input Features: Dataset c:\TEST2\CDMS\Arc does not exist or is not supported&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (FeatureClassToFeatureClass).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60695#M4850</guid>
      <dc:creator>SamCoggins1</dc:creator>
      <dc:date>2021-12-10T22:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60696#M4851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think it should matter, but try 'arc' instead, all lower case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 16:35:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60696#M4851</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-09-05T16:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60697#M4852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nope, made no difference. Same error. Not sure where to go from here. I had thought of using a search cursor and copying the data over by 'searching' for each row in the arc feature, then 'updating' a new geodatabase feature class with the searched data. However, the arc feature class is not recognised by the search cursor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is an interesting issue in the error message I get from my original script (I can't take full credit for this script, as some of the finer points were provided by the IT guy I worked with):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

# Import system modules
import arcpy, string

# Source directory
directory = r'I:\Q_workspace\Sam_GIS\290812_CoveragetoGDB\COVERS'
destDir = directory + '\\gdb'

# Workspace
arcpy.env.workspace = directory

# Determine coverages in folders
coverageList = arcpy.ListDatasets()
for coverage in coverageList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; outPath = destDir + '\\' + coverage
&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(outPath):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print outPath + " already exists.&amp;nbsp; Stopping..."
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Creating " + outPath
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newGDB = arcpy.CreateFileGDB_management(destDir, coverage)

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Determine feature classes in coverage
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = directory + '\\' + coverage
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcList = arcpy.ListFeatureClasses()
&amp;nbsp;&amp;nbsp;&amp;nbsp; print coverage + " has the following featureclassses: " + ','.join(fcList)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToGeodatabase_conversion(fcList, newGDB)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which results in this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "I:\Q_workspace\Sam_GIS\290812_CoveragetoGDB\NumeroUno.py", line 40, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToGeodatabase_conversion(fcList, newGDB)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\conversion.py", line 1152, in FeatureClassToGeodatabase&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000732: Input Features: Dataset &lt;/SPAN&gt;&lt;STRONG&gt;I:\Q_workspace\Sam_GIS\290812_CoveragetoGDB\COVERS\CDMS\Tic;I:\Q_workspace\Sam_GIS\290812_CoveragetoGDB\COVERS\CDMS\Point;Arc;I:\Q_workspace\Sam_GIS\290812_CoveragetoGDB\COVERS\CDMS\Annotation&lt;/STRONG&gt;&lt;SPAN&gt; does not exist or is not supported&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (FeatureClassToGeodatabase).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the section of the error message I've provided in Bold font, notice the Point and Annotation feature classes are provided with the full path, while the Arc feature is not. I'm not sure what this means, it's a little strange. Maybe part of the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60697#M4852</guid>
      <dc:creator>SamCoggins1</dc:creator>
      <dc:date>2021-12-10T22:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60698#M4853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;List FeatureClasses returns local paths:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.env.workspace = r"e:\work\basincov"
&amp;gt;&amp;gt;&amp;gt; arcpy.ListFeatureClasses()
[u'arc', u'label', u'polygon', u'tic']&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recommend explictly setting up complete paths for each before you give them to the tool. You also probably want to drop "tic" - not very useful now that digitizing tables are pretty much extinct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, annotation is no good either, since the tool does not support that (according to the help anyway). Maybe the annotation is our issue here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note my use of os.path.join (a lot cleaner than just appending strings)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import os
arcpy.env.workspace = os.path.join(directory,coverage)
fcList = arcpy.ListFeatureClasses()
fcList = fcList.remove("tic") # don't need tics
fcList = fclist.remove("annotation") # drop annotation
# use a list comprehension to prepend full paths
fcListFull = [os.path.join(arcpy.env.workspace,k) for k in fcList]
arcpy.FeatureClassToGeodatabase_conversion(fcListFull, newGDB)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW I'm with Matthew, you may have a data issue. I can't reproduce your problem with the local path (note I'm using 10.1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; zgdb = arcpy.CreateFileGDB_management(r"e:\work","zgdb")
&amp;gt;&amp;gt;&amp;gt; x
[u'arc', u'label', u'polygon', 'tic']
&amp;gt;&amp;gt;&amp;gt; arcpy.FeatureClassToGeodatabase_conversion(x,zgdb)
e:\work\basincov\arc Successfully converted:&amp;nbsp; e:\work\zgdb.gdb\basincov_arc
e:\work\basincov\label Successfully converted:&amp;nbsp; e:\work\zgdb.gdb\basincov_label
e:\work\basincov\polygon Successfully converted:&amp;nbsp; e:\work\zgdb.gdb\basincov_polygon
e:\work\basincov\tic Successfully converted:&amp;nbsp; e:\work\zgdb.gdb\basincov_tic
&amp;lt;Result 'e:\\work\\zgdb.gdb'&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:18:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60698#M4853</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-10T22:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60699#M4854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah, I figured it may just be a data issue... Think I'm just going to leave it for now. Thanks all for the advice/comments/help...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 17:51:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60699#M4854</guid>
      <dc:creator>SamCoggins1</dc:creator>
      <dc:date>2012-09-06T17:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60700#M4855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi @scoggins,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was also having issues, more with trying to figure out what "datatype" it wanted when attaching the script to a toolbar.&amp;nbsp; I finally got "Dataset" to work (not coverage like I would have guessed).&amp;nbsp; I am using 10.1 btw.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Simplified code with parameter setup is below.&amp;nbsp; I used "Workspace or Feature Dataset" and "Any Value" for the data type of the other two variables.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

#setup variables
arcpy.env.overwriteOutput = True

theCoverage = arcpy.GetParameterAsText(0)
if theCoverage == '#':
&amp;nbsp;&amp;nbsp;&amp;nbsp; theCoverage = r"c:\_data\_Skwentna07\covers\trans07\arc"
#theCoverage = r"c:\_data\_Skwentna07\covers\trans07\arc"

theWorkspace = arcpy.GetParameterAsText(1)
if arcpy.env.workspace == '#':
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = r"c:\_data\_Skwentna07\Reports\RetroFitDev2\newTest.gdb"
&amp;nbsp;&amp;nbsp;&amp;nbsp; #C:\_data\_Skwentna07\Reports\RetroFitDev2\newTest.gdb
#arcpy.env.workspace = r"c:\_data\_Skwentna07\Reports\RetroFitDev2\newTest.gdb"
theWorkspace = arcpy.env.workspace

outFC = arcpy.GetParameterAsText(2)
if outFC == '#':
&amp;nbsp;&amp;nbsp;&amp;nbsp; outFC =&amp;nbsp; "cleanTrans"&amp;nbsp;&amp;nbsp; # Transects

print("&amp;nbsp; Converting the coverage to a FC " + str(outFC))
arcpy.FeatureClassToFeatureClass_conversion(theCoverage, theWorkspace, outFC)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;....or at least it worked a couple times....now??&amp;nbsp; UGH!&amp;nbsp; ((it did work, kind of....wrote to my mxd env which was still set to the default gdb instead of theWorkspace variable.&amp;nbsp; The default fgdb in 10.1 messes with me all the time!)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60700#M4855</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2021-12-10T22:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60701#M4856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;BR /&gt;I was also having issues, more with trying to figure out what "datatype" it wanted when attaching the script to a toolbar.&amp;nbsp; I finally got "Dataset" to work (not coverage like I would have guessed).&amp;nbsp; I am using 10.1 btw.&lt;BR /&gt;&lt;BR /&gt;Simplified code with parameter setup is below.&amp;nbsp; I used "Workspace or Feature Dataset" and "Any Value" for the data type of the other two variables.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Update (caution):&lt;/STRONG&gt;&lt;SPAN&gt; if the coverage is not DOUBLE precision and then CLEANed (with ARC option), the command may not import all records.&amp;nbsp; But with the CLEAN, some lines may get flipped, which for my project is a problem.&amp;nbsp; Just using the BUILD with ARC option didn't improve anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best option for me which doesn't flip line direction is to use the ARCSHAPE command (one the SINGLE or DOUBLE precision coverage....no difference) and then use FeatureClassToFeatureClass to import the shape file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 14:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60701#M4856</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2012-10-31T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60702#M4857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some suggestions below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I was also having issues, more with trying to figure out what "datatype" it wanted when attaching the script to a toolbar.&amp;nbsp; I finally got "Dataset" to work (not coverage like I would have guessed).&amp;nbsp; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe you were looking for "Coverage Feature Class", which is a subset of "Dataset"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;"Workspace or Feature Dataset" and "Any Value" for the data type of the other two variables.&amp;nbsp; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That last one is a feature class name, so it should be type String. Your script could validate that against the workspace using the arcpy.ValidateTableName method to make sure it's a legal output name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;theCoverage = arcpy.GetParameterAsText(0)&lt;BR /&gt;if theCoverage == '#':&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GetParameterAsText() will return "" (not "#") if the parameter was not set and you haven't set a default value in the script tool parameters tab. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"" evaluates to false in an if, so I often do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
theCoverage = arcpy.GetParameterAsText(0)
if not theCoverage: 
&amp;nbsp;&amp;nbsp;&amp;nbsp; theCoverage = r"c:\_data\_Skwentna07\covers\trans07\arc"
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you think you may run this from Windows instead of from a toolbox, you can support "#" like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
theCoverage = arcpy.GetParameterAsText(0)
if theCoverage in ["","#"]:
&amp;nbsp;&amp;nbsp;&amp;nbsp; theCoverage = r"c:\_data\_Skwentna07\covers\trans07\arc"
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;UGH! ((it did work, kind of....wrote to my mxd env which was still set to the default gdb instead of theWorkspace variable. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you apply an environment setting inside the script, it will override any application settings. (Note you can set this parameter in the script tool parameters dialog to default to the app workspace setting.) These settings are local to the script, and will not affect the GP environment of the application that launched the script tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
theWorkspace = arcpy.GetParameterAsText(1)
if not theWorkspace:
&amp;nbsp;&amp;nbsp;&amp;nbsp; theWorkspace = r"c:\_data\_Skwentna07\Reports\RetroFitDev2\newTest.gdb"
arcpy.env.workspace = theWorkspace
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:18:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60702#M4857</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-10T22:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60703#M4858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Some suggestions below.&lt;BR /&gt;&lt;BR /&gt;GetParameterAsText() will return "" (not "#") if the parameter was not set and you haven't set a default value in the script tool parameters tab. &lt;BR /&gt;"" evaluates to false in an if, so I often do this:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
theCoverage = arcpy.GetParameterAsText(0)
if not theCoverage: 
&amp;nbsp;&amp;nbsp;&amp;nbsp; theCoverage = r"c:\_data\_Skwentna07\covers\trans07\arc"
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;If you think you may run this from Windows instead of from a toolbox, you can support "#" like this:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
theCoverage = arcpy.GetParameterAsText(0)
if theCoverage in ["","#"]:
&amp;nbsp;&amp;nbsp;&amp;nbsp; theCoverage = r"c:\_data\_Skwentna07\covers\trans07\arc"
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This change makes sense.&amp;nbsp; I think the other code was from the python class I took a few years ago and I never revisted it in the newer versions/toolbar.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:19:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60703#M4858</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2021-12-10T22:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for coverage</title>
      <link>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60704#M4859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One thing to also keep in mind is that if you have coverage annotation you need to use ImportCoverageAnnotation otherwise your annotation will be converted to a line with a "name" attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; env.workspace = landpath + os.sep + "ilr"
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Get a list of all feature classes in the workspace
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcs = arcpy.ListFeatureClasses()
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Loop through the list of feature classes
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc = str(fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "." in fc:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_fix = fc.replace(".", "_") # Replace . with _ for use as a feature class input name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #messages("Fixed " + fc_fix)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_fix = fc

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Create a Describe object
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(landpath + os.sep + "ilr" + os.sep + fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Pull Describe Object properties
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if hasattr(desc, "featureType"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureType = desc.featureType
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if featureType == "CoverageAnnotation":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Import Coverage Annotation
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ImportCoverageAnnotation_conversion(fc, out_dataset_path + os.sep + out_name + os.sep + out_name + "_" + fc_fix, "2400", "CLASSES_FROM_LEVELS", "NO_MATCH", "NO_SYMBOL_REQUIRED", "STANDARD", "", "AUTO_CREATE", "AUTO_UPDATE")

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToFeatureClass_conversion(fc, out_dataset_path + os.sep + out_name, out_name + "_" + fc_fix)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:19:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/correct-syntax-for-coverage/m-p/60704#M4859</guid>
      <dc:creator>JoelCalhoun</dc:creator>
      <dc:date>2021-12-10T22:19:02Z</dc:date>
    </item>
  </channel>
</rss>

