We are using a NAServer to do routing in our Webapp. One can display its Network Dataset via a Map Image Service. I wanted to ask if there is a possibility to query for the count of dirty areas, to know when to build the network again.
Either via the query-Api in the mapImage Service or via a python call on the ndsobject.
I tried
import arcpy
arcpy.CheckOutExtension("network")
nds_path = r"C:\Users\connection.sde\dataset\dataset.ND"
# Initialize the NetworkDataset object
nds = arcpy.nax.NetworkDataset(nds_path)
des = arcpy.da.Describe(nds_path)
dirty=f"{nds_path}_{des['DSID']}_DirtyAreas"
arcpy.da.Describe(dirty) as it worked for people with a utitlity network, however, the last line just returns an error.
Line 1: arcpy.da.Describe(dirty)
ValueError: Object: Error in accessing describe
Any help would be very appreciated.
Thank you very much.
Best regards
Dominik