fgpv-vpgf / PAGER

Publication to ArcGIS Environments & RAMP
MIT License
1 stars 1 forks source link

Greater exception handling to permit “retrying” publications that may fail due to network outages, Catalogue availability, ArcGIS availability #12

Open dan-bowerman opened 8 years ago

dan-bowerman commented 8 years ago

Compile a list of possible scenarios, check previous log files for errors that have been encountered but unhandled in the past.

dan-bowerman commented 8 years ago

Some commonly occurring errors that remain "unknown" for their cause:

<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'getElementsByTagName'

<class 'arcgisscripting.ExecuteError'>: ERROR 001272: Analyzer errors were encountered (codes = 176). Failed to execute (StageService).

<class 'arcgisscripting.ExecuteError'>: ERROR 001364: Validation of service definition failed. Failed to execute (Publish Service Definition).

dan-bowerman commented 8 years ago

The "'NoneType' object has no attribute 'getElementsByTagName'" error appears related to Catalogue metadata not having a required field that PAGER tries to apply to the ArcGIS service metadata for WMS/WFS endpoints. This has now been patched.