I am unable to solve a closest facility problem in ArcGIS Desktop 10.2.2 with ArcPy.
I was performing 'FindClosestFacilities' task of network analyst.
During the processing, I received following error message:
"A geoprocessing error occurred.
ERROR 001156: Failed on input OID '32769', could not write value '32769' to output field ORIG_FID
Failed to execute (FeatureClassToFeatureClass).
Failed to execute (FindClosestFacilities)."
Solved! Go to Solution.
It is a known bug, fixed by upgrading to ArcMap 10.4
https://community.esri.com/message/703855-arcpy-bug-find-closest-facility-error-001156-could-not-wri... as reported in this and your other thread.
If you can't upgrade, reduce the size of your dataset so that the possible values of the orig_id are less than the maximum.
It is a known bug, fixed by upgrading to ArcMap 10.4
https://community.esri.com/message/703855-arcpy-bug-find-closest-facility-error-001156-could-not-wri... as reported in this and your other thread.
If you can't upgrade, reduce the size of your dataset so that the possible values of the orig_id are less than the maximum.
Bug number .... and another with the same root cause
Thanks Dan!
Dinesh, if it worked, could you please mark the correct answer so that people will know a solution was found
Yes Dan. Definitely I will mark the post as a correct answer once it will get verified with latest version like ArcGIS for Desktop 10.4 or higher version.
Hello Dan,
I performed the "find closest facility" task in ArcGIS Desktop 10.4.1, and it executed successfully. So there is no need to reduce the size of input facility dataset.