Hello, I've got a python script that works as expected in the PyCharm IDE but when I try to run it as a tool in #ArcCatalog 10.5 it gets about 80% done and then fails. ArcCatalog simply closes without an error message. The script attempts to create polylines between pairs of features in two point layers that are linked by a common ID field. The data I'm using are address points (1st point layer) and their geocoded locations (2nd point layer). I've noticed that the script fails in ArcCatalog precisely when it reaches the address points in the first layer that have no matching geocoded locations in the second layer. Yet because the script works in PyCharm without issue and no error message is generated by ArcCatalog I am not sure why it fails. Any wisdom on this problem would be greatly appreciated. Thanx! P.S. I've attached my script for reference.
... View more