Message
foo
must be an integer
Explanation
This value must be an integer greater than or equal to zero. It can not be negative, or a decimal, or a fraction, or a string, or blank.
Solution
Make the specified value a non-negative integer.
Not clear? Disagree?
You might be able to find help in one of these fine resources.