The error could be caused when you are calling a function which has parameters as CHARACTER with following style:
db2 values test_func('test')the function has following defination
test_func(input character(4))
To avoid the error, you need to make a convertion for the input parameter, like this:
db2 values test_func(char('test'))


