I have complex script that causes an error for only one user, which appears to have to do with an Arcmap toolbox. It says this an error in line 15 of my module, but that line is just a parameter which triggers other parts of the script:
critical_hab_start = arcpy.GetParameterAsText(11)
There are several locations where table excel is used and they use the format for pro - to my knowledge. Is there anything else to look for that might cause the script to try to access the arcmap toolbox?
if intersect_req == "YES":
rows = [row for row in arcpy.da.SearchCursor("neartab",['NEAR_DIST'], "NEAR_DIST = 0")]
count1 = len(rows)
if count1 == 0:
prefix = "none_"
arcpy.conversion.TableToExcel("neartab", outputfolder + r"\\"+prefix+resource_type+"no_interfx.xls")
arcpy.conversion.TableToExcel(stats, outputfolder + r"\\"+prefix+"_BCR"+"_"+resource_type+"fx.xls")
