Type '{0}' is not valid in function '{1}'. The function must have return type and parameters expressed in primitive types. ...