3

I am working on reports oracle 11g and applying formula as follows

function CF_CLEAR_EMP_NAMEFormula return Char is
    V_EMP_DESC VARCHAR2(1500);
BEGIN
    pkg_lkp.p_emp(:P_Lang,TO_CHAR(:emp_serno1),V_EMP_DESC);     
    RETURN INITCAP(V_EMP_DESC); 
EXCEPTION
    WHEN OTHERS THEN
    NULL;
END;

and when I compile it gives me this error I checked :emp_serno1 type and formula type and no clue what happens when I change :emp_serno1 to :emp_serno which in other query it compiles but that's not what I want.

no PL/SQL translation for the bindtype given for this bind variable

I checked the error description on the internet:

Cause: A host variable was passed (by an Oracle Precompiler program, for example) to PL/SQL for binding. However, its datatype is not compatible with any PL/SQL datatype. So, the binding failed. Action: Change the datatype of the host variable to make it compatible with a PL/SQL datatype.

4

1 回答 1

10

“No PL/SQL translation for the blind type given for this bind variable”:我认为这是一个报告 Builder 11g 错误。

当您收到此错误时:

  1. 保存报告

  2. 关闭现有报告

  3. 重新打开报告并编译它

之后,您的报告将毫无错误地运行。

于 2013-08-12T10:52:57.987 回答