NYCPlanning / gis-building-footprints

Building footprints represent the full perimeter outline of each building as viewed from directly above. This script is used to scrape the NYC Open Data platform for the most recent Building Footprints data set update and distribute accordingly across DCP's internal network file-systems.
0 stars 1 forks source link

Distribute_Bldg_Footprints.py is failing #1

Open jackrosacker opened 1 month ago

jackrosacker commented 1 month ago

Distribution script is currently failing, with the following error message:

2024-08-16 23:59:06 PYTHON ERRORS:
Traceback Info:
  File "Distribute_Bldg_Footprints.py", line 217, in <module>
    export_featureclass(bldg_footprint_poly_path, "NYC_Building_Footprints_Poly", "BUILDING_FOOTPRINTS_PLY_Modified.shp")

Error Info:
Failed to execute. Parameters are not valid.
ERROR 000732: Source Metadata: Dataset template\NYC_Building_Footprints_Poly.xml does not exist or is not supported
Failed to execute (MetadataImporter).

ArcPy ERRORS:
Executing: MetadataImporter template\NYC_Building_Footprints_Poly.xml C:\Temp\building_footprints\BUILDING_FOOTPRINTS_PLY_Modified.shp
Start Time: Sat Aug 17 00:17:48 2024
Failed to execute. Parameters are not valid.
ERROR 000732: Source Metadata: Dataset template\NYC_Building_Footprints_Poly.xml does not exist or is not supported
Failed to execute (MetadataImporter).
Failed at Sat Aug 17 00:17:48 2024 (Elapsed Time: 0.01 seconds)

Unfortunately, it looks like this has been silently failing since June 2024.

caseysmithpgh commented 3 weeks ago

image

jackrosacker commented 3 weeks ago

image

@caseysmithpgh was this error returned when running via python 2 or 3? Noting that what you're getting here is a different error message than what the distribute script has been returning for the last however many months:

Traceback Info:
  File "Distribute_Bldg_Footprints.py", line 217, in <module>
    export_featureclass(bldg_footprint_poly_path, "NYC_Building_Footprints_Poly", "BUILDING_FOOTPRINTS_PLY_Modified.shp")

Error Info:
Failed to execute. Parameters are not valid.
ERROR 000732: Source Metadata: Dataset template\NYC_Building_Footprints_Poly.xml does not exist or is not supported
Failed to execute (MetadataImporter).

ArcPy ERRORS:
Executing: MetadataImporter template\NYC_Building_Footprints_Poly.xml C:\Temp\building_footprints\BUILDING_FOOTPRINTS_PLY_Modified.shp
Start Time: Sat Aug 24 00:22:07 2024
Failed to execute. Parameters are not valid.
ERROR 000732: Source Metadata: Dataset template\NYC_Building_Footprints_Poly.xml does not exist or is not supported
Failed to execute (MetadataImporter).
Failed at Sat Aug 24 00:22:07 2024 (Elapsed Time: 0.01 seconds)