Description
You have specified a number of neighbors value that is equal to or exceeds the number of features, or the number of selected features, in the input feature class.
Solution
Specify a value for number of neighbors that does not exceed the number of features, or the number of selected features, found in the input feature class. This error may occur when there is an active selection for the input feature class with only a few features selected.