1

Using this article as a guide, I've been trying to connect points to the nearest location on a line road feature class. This works until the last step, the Points To Line tool. It consistently gives a runtime error 999999: Error executing function.

999999 errors don't really tell me what's going wrong. This has occurred on different machines. On opening the script for the tool, it imports arcpy, os and types. Not familiar with the types module. It also has the lines

if name == 'main': convertPoints()

although I don't see the main function anywhere. Any ideas?

closed as off-topic by PolyGeo Aug 4 '16 at 15:30

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Not trying to rewrite the code in the existing script for PointsToLine in ArcToolbox. Just included that as a possible clue. I don't know the spefic cause of the error, that's what I'm asking, along with any fixes. – recurvata Aug 4 '16 at 15:37