Description
The input that identifies those cells from which the least-cost path is determined does not contain any valid values. If the input is a raster, it should consist of cells that have valid values (zero is a valid value), and the remaining cells must be assigned NoData.
Solution
Ensure that the raster you specify as the destination dataset has some cells with a valid value (not NoData). Check the documentation for Cost Path for further information.