Select to view content in your preferred language

Error 999999 in Statistics Analysis

203
1
10-29-2024 01:12 PM
dilaozberkman
New Contributor

Hello,

I have a shapefile of trajectories that I am running a tool I wrote on to count the number of turns. The tool is failing at the following line although it had been working on similar trajectories before:

arcpy.Statistics_analysis(outTrajPts, "in_memory\outTrajPts_stats", [["turns", "SUM"]], trajID)

The tool works by counting the turns for each vertex of the trajectory then summing them up by trajectory ID however for some reason it is not working now and the error doesn't explain more. Can you give guidance on how to resolve this? Thank you!

1 Reply
DanPatterson
MVP Esteemed Contributor

trajID, make sure it is a string and is valid


... sort of retired...
0 Kudos