This message is generated when the indicated expression is expected to be a polynomial in which all of the coefficients are integers or rational numbers.
Off[message] switches off the message; On[message] switches it on. For example: Off[General::npoly].
Examples
Basic Examples(1)
The argument is not a polynomial in the indicated variable: