Select to view content in your preferred language

ERROR 010045: COSTPATH in Model Builder

1418
4
04-02-2017 04:46 AM
AlbertoCañivano
Occasional Contributor

Hi everyone.

I have a problem with a Minimum cost Distance Model Builder. When I used as Feature Class my initial and final point my model works. However, when I set as Feature Set to give users the option to mark points into the map my model is not working.  Below is the scheme.

On the screen was the below messages:

ERROR 010045: COSTPATH: The number of FROM cells is 0.
Failed to execute (Cost Path). and this error ERROR 010151: No features found in in_memory\{58906A19-A816-4D6A-A9DC-CE9B2E365A82}. Possible empty feature class.

0 Kudos
4 Replies
DanPatterson_Retired
MVP Emeritus

That error indicates that you haven't made a input feature class.  Clicking on the screen or entering a point via coordinates or any other means, does not make a featureclass.  You have to provide the mechanism to do that

AlbertoCañivano
Occasional Contributor

Hi Dan,

Thanks for reply.  I set it as Feature Set so I wonder if the input for Cost Path has to be something different from Feature Set, if that is the problem how I can make that users introduce their points into the map.

0 Kudos
DanPatterson_Retired
MVP Emeritus

So you were following these guidelines then? and you exposed it as a model parameter?

curtvprice
MVP Alum

Have you set an extent? If it is merely a feature set you may not be getting a valid extent to do the processing. You may want to set the extent for the Cost Path tool environment to the slope_mds raster.  Also - make sure your data frame is in the same coordinate system as your slope_mds raster so the location you are entering will overlap with the raster!