Python error when using the describe function

Discussion created by ehrengh on Jul 19, 2013
Latest reply on Jul 23, 2013 by ehrengh
I'm getting the following error when I run my Python script tool on Personal and File Geodatabases that have more than one feature class in them on a 10.0 machine.  I tried debugging it today, but I am at a loss on what the issue could be. 

The error comes after this line right after the first else statement:   desc = arcpy.Describe(fc)
Any thoughts or suggestions would be great.  Thanks in advance.

Traceback (most recent call last):
  File "C:\test\Ehren\scripts\", line 138, in <module>
    desc = arcpy.Describe(fc)
  File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\", line 846, in Describe
    return gp.describe(*args)
  File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\", line 372, in describe
RuntimeError: ERROR 999999: Error executing function.
ERROR 999999: Error executing function.

Here is the section of code causing the issue (I've also attached the entire python file):
#Checks for feature classes in personal geodatabases
            for workspace in workspaceList:
                #set environmental workspace to personal geodatabase
                arcpy.env.workspace = workspace
                for fc in arcpy.ListFeatureClasses():
                    print "     Processing File: " + os.path.join(workspace, fc)
                    arcpy.AddMessage("     Processing File: " + os.path.join(workspace, fc))

                    #Setup variables for textToWriteList and check for valid metadata values
                    if arcpy.Describe(workspace).dataType == "Coverage" or arcpy.Describe(workspace).dataType == "CadDrawingDataset":
                        desc = arcpy.Describe(workspace + "/" + fc)
                        desc = arcpy.Describe(fc)
                    fcPath = os.path.join(dir, subFolderName, workspace)
                    fcDataType = desc.dataType
                    fcShapeType = desc.shapeType
                    if arcpy.Describe(workspace).dataType == "Coverage" or arcpy.Describe(workspace).dataType == "CadDrawingDataset":
                        fcFeatureCount = str(arcpy.GetCount_management(workspace + "/" + fc))
                        fieldList = arcpy.ListFields(workspace + "/" + fc)
                        fcFeatureCount = str(arcpy.GetCount_management(fc))
                        fieldList = arcpy.ListFields(fc)

                    fieldList = arcpy.ListFields(fc)
                    for field in fieldList:
                        fcFieldName =
                        fcFieldType = field.type
                        fcFieldLength = field.length

                        #Create list to hold text values for writing to Excel                    
                        textToWriteList = [excelRow, fc, fcPath, fcDataType, fcShapeType, fcFeatureCount, fcFieldName, fcFieldType, fcFieldLength]
                        #Start writing information on fc and fields to Excel
                        column = 0
                        for text in textToWriteList:                    
                            row = ws.row(excelRow)
                            if len(str(text)) > 32760:
                                text = "Value has too many characters to write"
                                row.write(column, text)
                                column = column + 1
                                row.write(column, text)
                                column = column + 1
                        #Increment row counter by 1
                        excelRow = excelRow + 1
                        #set workspace back to original environmental workspace
                        arcpy.env.workspace = os.path.join(dir, subFolderName)