Hi,Anna, Actually, I have the same problem as described in this thread. The difference is that I developed my code in VBA. I load points into route layer and get the shortest path in a loop. When the route is not possible, the program just stopped and error messages jump out. How can I skip this problematic route and make the program run into the next iteration? Thank you a lot. Hi, You can throw an exception when no solution is found: try:
arcpy.Solve_na(layer1)
except (RuntimeError):
print "No solution is found for " + str(layer1)
Thanks. Anna
... View more