Hello,
Had a script that was taking GPS points from a SQL database and putting them into a GDB. It was working fine in 2.8, but got upgraded to 3.0 and now it is throwing me 000354 errors which it has never done before. It is specifically failing at the following code:
# In the raw GDB select all rows with the same collar id and get the row count
fc = os.path.join(parameters[1].valueAsText, 'Locations')
where = f"""Collar_ID = '{collar_id}' And Entry_Staff = 'AUTOFILL'"""
scratch_fc = os.path.join(arcpy.env.scratchGDB, f'V{collar_id}')
# fc = '{Path that you dont need}\\Population Data\\GIS_Data\\Locations.gdb\\Locations'
# where = "Collar_ID = '14692' And Entry_Staff = 'AUTOFILL'"
# scratch_fc = 'C:\\Users\\cowinch\\AppData\\Local\\Temp\\scratch.gdb\\V14692'
if arcpy.Exists(scratch_fc):
arcpy.Delete_management(scratch_fc)
selection = arcpy.analysis.Select(fc, scratch_fc, where)
The only thing I can think of that would cause the error is the space in the Population Data folder, but I thought it specifically referred to content within a GDB so I really have no idea why I'm getting this error. It has also worked previously so not sure what changed.
Anyone have any thoughts?