Error : stopping

Hello,

I am receiving the below error and cant figure out the solution.
Please help.

Code : - fit <- train(training[,-1],
training[, 1],
method = 'knn',
tuneLength = 20,
trcontrol = trcontrol,
preProc = c("centre", "scale"))
Something is wrong; all the Accuracy metric values are missing:
Accuracy Kappa
Min. : NA Min. : NA
1st Qu.: NA 1st Qu.: NA
Median : NA Median : NA
Mean :NaN Mean :NaN
3rd Qu.: NA 3rd Qu.: NA
Max. : NA Max. : NA
NA's :20 NA's :20
Error: Stopping
In addition: There were 50 or more warnings (use warnings() to see the first 50)

Please note there are no Missing values