The invalid function was used as a WHENEVER argument.
If using SQL Option extensions, check to ensure that the XDBFUNCS directive is set.