In arcpy, I'm trying to join an list of .csv files with data of emissions per country, with the attribute table of a raster in order to make lookup tables later on. So far this is my script:
ras_countries = "E:\\eco_services\\data\\EU_28" arcpy.env.workspace = "G:\\AIR_QUALITY\\paper\\GAINS_emission\\emission_gains" landuse_tables = arcpy.ListTables ("emiss*") for landuse in landuse_tables: tableViewName = landuse [6:-4] arcpy.MakeTableView_management(landuse, tableViewName) arcpy.AddJoin_management(ras_countries, "cou_abb", tableViewName, "cou_abb")
But I always get the same error message:
ERROR 000840: The value is not a Table View. ERROR 000825: The value is not a layer or table view ERROR 000840: The value is not a Raster Catalog Layer. ERROR 000840: The value is not a Mosaic Layer. WARNING 000970: The join field COU_ABB in the join table EU_28 is not indexed. To improve performance, we recommend that an index be created for the join field in the join table.
I also tried converting the .csv files to .dbf but still no success.
Failed to execute (AddJoin).