SAP Message UA_FORMULA009 - Function &1 cannot return the desired type

UA_FORMULA009 : Function &1 cannot return the desired type