Please excuse my (very) novice understanding of this issue. I have this code:
import arcpy
from arcpy import env
env.workspace = "C:/Users/matth/Desktop/CSULB/Richards_605/Geoproccessing/Geoproccessing.gdb"
env.overwriteOutput = True
def myDescFunction(fc):
print('Processing {}'.format(fc))
if arcpy.Exists(fc):
desc = arcpy.Describe(fc)
print("the base name for {0} is {1}".format(fc, desc.baseName))
print(desc.shapeType)
print(desc.dataType)
else:
print("Did not find the feature class: " + fc)
if __name__ == "__main__":
myDescFunction("C:\\Users\\matth\\Downloads\\HBCentral.gdb\\HBCentral.gdb\\Address\\SiteAddressPoint")
And it's returning:
"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" C:\Users\matth\PycharmProjects\pythonProject1\env.py
Processing C:\Users\matth\Downloads\HBCentral.gdb\HBCentral.gdb\Address\SiteAddressPoint
Did not find the feature class: C:\Users\matth\Downloads\HBCentral.gdb\HBCentral.gdb\Address\SiteAddressPoint
Process finished with exit code 0
I have verified that I am using a completely identical code to a colleague w/ same format and they received:
Solved! Go to Solution.
UPDATE: It seems moving the folder off of my downloads location to elsewhere fixed the issue!
UPDATE: It seems moving the folder off of my downloads location to elsewhere fixed the issue!
shouldn't have an issue withe the download folder, suspect the issue is that your connect string says you have a FGDB stored inside a FGDB.
myDescFunction("C:\\Users\\matth\\Downloads\\HBCentral.gdb\\HBCentral.gdb\\Address\\SiteAddressPoint")