Original post located here: Movings points in my geometric network to their absolute X,Y obtained through GPS
I have the same issue as TanMay and was able to use this script to move some points based on the new X,Y coordinates. Thanks! Unfortunately as soon as I created a geometric network I got an error:
line 17, in <module>
for row in Cur:
RuntimeError: Unspecified error
Is there a way to get this script to work with a geometric network?
I also get this error when I try to run the script in ArcMap:
RuntimeError: The modified geometry must be a different geometry instance from the feature's original geometry (e.g., a copy or new instance). [class name = ServiceLocations, object id = 4]
Initial answer by: Neil Ayres
Without knowing the details it is difficult to say. Type of db?
Are you saying that the points are participating in a network?
You may have to wrap the update cursor loop in an editor session.
Message was edited by: Xander Bakker: Branched to new question.