Error ORABPEL-04040 & ORA-22990

Hi,
We are getting this particular error when we are placing an Order
extracting error from log file
*09/12/14 14:14:51 0 - ORABPEL-04040*
Cannot update lob column.
The process domain was unable to update the lob column "3" in the datastore.
The exception reported is: ORA-22990: LOB locators cannot span transactions
Action: Verify that the machine hosting the data source is physically connected to the network. Otherwise, verify that the data source connection parameters (user/password) are currently valid.
checked the database connection it is fine
Anybody know what exactly is the problem
regards,
anvv sharma
Edited by: anvv sharma on Dec 16, 2009 11:44 AM

Hi anvv,
This looks like a bug. See the following forumpost with a workaround.
EXCEPTION: ORA-22990: LOB LOCATORS CANNOT SPAN TRANSACTIONS
Regards,
Melvin

Similar Messages

  • EXCEPTION: ORA-22990: LOB LOCATORS CANNOT SPAN TRANSACTIONS

    We hit a brand new BPEL error during Volume Test:
    EXCEPTION: ORA-22990: LOB LOCATORS CANNOT SPAN TRANSACTIONS
    Anyone seen this ? The OC4J BPEL java process started to consume vast amounts of CPU but I'm not sure if this was the cause of effect. I'm sort of hoping it was the result of this error - if it isn't we have another root cause to try and figure out! We're using BPEL 10.1.2.0.2.
    Rob J

    sorry for the delay, i was not checking the otn forum for a while.
    Do you see any other errors before this LOB errors in the log file? This is important, you should see some errors (e.g. cmt error or some other error related to jta transaction)
    we had this lob locater issue in 10.1.2.0.0 and a mandatory oc4j patch is available for 10.1.2.0.0.
    But if you are using 10.1.2.0.2 the patch should be included but i suspect the patch is not taking effect because patch gets applied after the bpel ejb-bean class generation.
    the solution
    -remove the application-deployments/orabpel directory completely (just to be safe...please backup before delete)
    - restart the server with -DKeepWrapperCode=true system property in opmn.xml for OC4J_BPEL, this flag would generate stub .java files under j2ee/home or j2ee/home/application-deployments/orabpel/generated directory
    - please upload these regenerated java files to SR
    this will force to regenerate the bpel ejb stub classes which should fix this issue.

  • [Error ORABPEL-10039]: invalid xpath expression  - array processing

    hi,
    I am trying to process multiple xml elements
    <assign name="setinsideattributes">
    <copy>
    <from expression="ora:getElement('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500['bpws:getVariableData('iterator')']/ns2:HEADER/ns2:SSN')"/>
    <to variable="ssn"/>
    </copy>
    </assign>
    where iterator is a index variable .
    I am getting into this error .
    Error(48):
    [Error ORABPEL-10039]: invalid xpath expression
    [Description]: in line 48 of "D:\OraBPELPM_1\integration\jdev\jdev\mywork\may10-workspace\multixm-catch\multixm-catch.bpel", xpath expression "ora:getElement('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500['bpws:getVariableData('iterator')']/ns2:HEADER/ns2:SSN')" specified in <from> is not valid, because XPath query syntax error.
    Syntax error while parsing xpath expression "ora:getElement('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500['bpws:getVariableData('iterator')']/ns2:HEADER/ns2:SSN')", at position "77" the exception is Expected: ).
    Please verify the xpath query "ora:getElement('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500['bpws:getVariableData('iterator')']/ns2:HEADER/ns2:SSN')" which is defined in BPEL process.
    [Potential fix]: Please make sure the expression is valid.
    any information on how to fix this .
    thanks in advance

    check out this note here
    http://clemensblog.blogspot.com/2006/03/bpel-looping-over-arrays-collections.html
    hth clemens

  • ORA-22990 ( Cannot span lob... ) while using connection pooling...

    Hi all, I am maintaining a web site that has lots of requests ( about 10 requests a second ) to an Oracle table that has a BLOB field. Those requests create new blobs, updates them and reads them... My program worked fine until I started using connection pooling ( Before that, I used a single connection that was initialized at startup ). Although I had to synchronized the methods that interact with blob field, everything worked great. So now, to optimize my site, I want to use connection pooling so that even if my methods are synchonized on the connection object, there will be more than one connection available so it will not affect performance.
    So once I introduced my connection pooling system with the oracle.jdbc.pool.OracleConnectionCacheImpl class, I started getting ORA-22990 ( Cannot span lob objects... ). I get the error on the flush() method when I try to write the blob to the database. Here is my function that writes a row in the databse.
      private synchronized void writeSession(CapSession pSession) throws Exception
            javax.sql.PooledConnection pc = pool.getPooledConnection();
            Connection conn = pc.getConnection();
            CallableStatement stmt=conn.prepareCall(writeObjSQL);
            stmt.setString(1,pSession.getSessionId()+pSession.getPassword());
            stmt.setLong(2,pSession.getLastAccess());
            stmt.setLong(3,pSession.getTimeout());
            stmt.registerOutParameter(4,java.sql.Types.BLOB);
            stmt.executeUpdate();
            oracle.sql.BLOB blob=(BLOB)stmt.getBlob(4);
            OutputStream os=blob.getBinaryOutputStream();
            ObjectOutputStream oop=new ObjectOutputStream(os);
            oop.writeObject(pSession);
            oop.flush();
            oop.close();
            os.close();
            stmt.close();
            conn.commit();
            conn.close();
            pc.close();
      } If anyone could help me, I would deeply appreciate it!
    Thank you for your time.

    kalle
    Thank you very much for your advice!!!
    Like you said, I started to check whether the connections are fine before giving them from the pool.I am executing a simple "select 'anil' from dual" and if its fine only then I return the connection. So far it seems to be fine. Also I am reopening the connections(closing the old ones and opening new connections) after every 12 hours.
    As far as the JDBC driver is concerned, I already tried with Oracle 8i driver, it gave the same problems. I read that 9i driver might solve this problem, so I changed to the latest 9i driver (classes12_g.zip).
    Sometimes before(before I started checking whether the connection is good )the application used to hang up at the point where I am issuing setAutoCommit(false).It never comes out from that statement.Is this something to do with theconnections being closed?
    What I am afraid is, will the appilation get hung up even after I check the connection with select query and then issue autocommit(false)??
    Or will it hang up while I check with a select query??
    As long as it doesn't hung up, I am fine. Because i am cathching the exceptions.
    Thanks In ADVANCE
    Anil

  • ORA-22990 saving an XmlDocument

    I tried to save an XMLDocument into a CLOB using the code i found in the Steve Muench's book (chap. 6 XMLDocuments).
    When I execute it I get the Error ORA-22990 LOB locators cannot span transactions.
    The error is issued when i close the BufferedWriter.
    One indication more :
    . the print of the XMLDocument takes along time (60 secs or more) and the document is very small (200 chr)
    null

    try {
    #sql { SELECT NVL(MAX(version),0)+1 INTO :newVersion FROM content WHERE cn_id_page = :p_id };
    #sql { INSERT INTO Content( cn_id_page, version, owner, status, source_file, content,created,modified,created_by,modified_by)
    VALUES ( :p_id, :newVersion, USER, 'Created', :p_name, EMPTY_CLOB(),SYSDATE,SYSDATE,USER,USER) };
    try {
    #sql { SELECT content INTO :tmpClob FROM content WHERE cn_id_page = :p_id AND version = :newVersion };
    #sql { call DBMS_LOB.TRIM( :inout tmpClob, 0 )};
    out = tmpClob.getCharacterOutputStream();
    URL inUrl = new URL(loadPath+p_path+p_name+"."+p_ext);
    in = inUrl.openStream();
    //in = new FileInputStream(loadPath+p_path+p_name+p_ext);
    parseAndStore(in,out,xsl);
    in.close();
    out.close();
    #sql clobSize = { VALUE(DBMS_LOB.GETLENGTH( :tmpClob )) };
    #sql { UPDATE content SET content = :tmpClob, status = 'Loaded', file_size = :clobSize, modified=SYSDATE, modified_by=USER
    WHERE cn_id_page = :p_id AND version = :newVersion };
    if (autoCommitVersion)
    #sql { UPDATE pages SET current_version = :newVersion, status = 'Loaded', file_size = :clobSize WHERE id_page = :p_id };
    else
    #sql { UPDATE pages SET status = 'Loaded', file_size = :clobSize WHERE id_page = :p_id };
    } catch (Exception e1) {
    if (in != null)
    in.close();
    if (out != null)
    out.close();
    String msg = "Error at importing time: "+e1.getMessage();
    System.out.println(msg);
    #sql { UPDATE content SET status = :msg WHERE cn_id_page = :p_id AND version = :newVersion };
    #sql { UPDATE pages SET status = :msg WHERE id_page = :p_id };
    return false;
    return true;
    } catch (SQLException e) {
    System.out.println(e.getMessage());
    return false;
    }Best regards, Marcelo.
    null

  • ORA 22990 - LOB locators cannot span transactions

    All our composites work fine in dev env which is multi-domain. However, upon deploying them to single-domain DTE env, all of them throw same error -
    ORA 22990 - LOB locators cannot span transactions
    In fact, one of the composites is just fyi notification to a certain set of assignees; nothing fancy there. I suspect, it has something to do with our env or deployment but can't figure out, what's wrong. Logs also don't reveal much. Any pointers are appreciated.

    Oops!
    Solution found: I must have set autocommit to false.
    Sorry for post.
    Thanks, Oleg.
    "Oleg Fainitsky" <[email protected]> wrote in message
    news:[email protected]..
    java.io.IOException: ORA-22990: LOB locators cannot span transactions
    ORA-06512: at "SYS.DBMS_LOB", line 708
    ORA-06512: at line 1
    This exception occures when trying to write CLOB:
    Clob c = rs.getClob(1);
    oracle.sql.CLOB oclob = (oracle.sql.CLOB) c;
    Writer writer = oclob.getCharacterOutputStream();
    writer.write(res);
    writer.flush(); // exception here!
    writer.close();
    conn.commit();
    It occures when I use DATASOURCE or TX_DATASOURCE.
    Are there any ideas about how to work it around?
    Thanks, Oleg.

  • [Error ORABPEL - 10900]... : Can not find definition for element 'process'

    Hi,
    When I try to deploy a bpel process using JDeveloper I'm having the following xml parse error:
    Error(21):
    [Error ORABPEL-10900]: xml parser error
    [Description]: in line 21 of "file:/C:/JDeveloper/jdev/mywork/NERGA/CriarProjectoSA/bpel/CriarProjectoSA.bpel", XML parsing failed because file:/C:/JDeveloper/jdev/mywork/NERGA/CriarProjectoSA/bpel/CriarProjectoSA.bpel<Line 21, Column 63>: XML-24538: (Error) Can not find definition for element 'process'.
    [Potential fix]: Fix the invalid XML.
    I don't understand why... Any idea?

    Ok.
    This is my BPEL code. The sapattern tags are from a program that is generating part of the code. The JDeveloper doesn't show any error, I only get the error when I try to deploy.
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <process name="CriarProjectoSA"
    targetNamespace="http://xmlns.oracle.com/CriarProjectoSA"
    suppressJoinFailure="no"
    xmlns="http://xmlns.oracle.com/CriarProjectoSA"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns4="http://xmlns.oracle.com/CriarProjectoSA"
    xmlns:ns7="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ns5="http://schemas.oracle.com/xpath/extension"
    xmlns:ns6="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ns11="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:ns9="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ns1="http://xmlns.oracle.com/ValidacaoProjectos"
    xmlns:ns3="http://www.nerga.pt" xmlns:ns2="http://tempuri.org/"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:ns10="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ns8="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    <!--Generated by Telelogic System Architect on 05/01/2007 11:06:18 by easm-->
    <sapattern>
    <guid>41207640-d934-480f-902a-b3764f3d9c9f</guid>
    </sapattern>
    <partnerLinks>
    <partnerLink name="client" partnerLinkType="ns4:CriarProjectoSA"
    myRole="CriarProjectoSAProvider"/>
    <partnerLink name="NergaIS" partnerLinkType="ns2:ServiceSoap_PL"
    myRole="ServiceSoap_Role" partnerRole="ServiceSoap_Role"/>
    <partnerLink name="ValidacaoProjectos"
    partnerLinkType="ns1:ValidacaoProjectos"
    myRole="ValidacaoProjectosRequester"
    partnerRole="ValidacaoProjectosProvider"/>
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>e728e550-f404-47bf-aa13-72429480cbc6</guid>
    <guid>3111d1af-0b31-4d02-b3fc-73d14ce95405</guid>
    <guid>e9cdca59-888a-4e67-af54-a63ce2347ad3</guid>
    </sapattern>
    </partnerLinks>
    <variables>
    <variable name="outputVariable"
    messageType="ns4:CriarProjectoSAResponseMessage"/>
    <variable name="inputVariable"
    messageType="ns4:CriarProjectoSARequestMessage"/>
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>2503e820-3add-4cd1-bbc5-5cc5fff57090</guid>
    <guid>8bcc3532-46b7-4e88-816f-72ecdaee76ab</guid>
    </sapattern>
    <variable name="invocaVP_initiate_InputVariable"
    messageType="ns1:ValidacaoProjectosRequestMessage"/>
    <variable name="recebeVP_onResult_InputVariable"
    messageType="ns1:ValidacaoProjectosResponseMessage"/>
    <variable name="InvocaAdicionarProjecto_InputVariable"
    messageType="ns2:AdicionarProjectoSoapIn"/>
    <variable name="InvocaAdicionarProjecto_OutputVariable"
    messageType="ns2:AdicionarProjectoSoapOut"/>
    </variables>
    <sequence>
    <receive name="recebeTemplate" joinCondition="False" partnerLink="client"
    portType="ns4:CriarProjectoSA" operation="process"
    variable="inputVariable" createInstance="yes">
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>e728e550-f404-47bf-aa13-72429480cbc6</guid>
    <guid>68e62379-55ac-48eb-b681-aee8f5a7696d</guid>
    </sapattern>
    </receive>
    <scope variableAccessSerializable="no" name="ValidarExigências"
    joinCondition="False">
    <faultHandlers>
    <catchAll>
    <assign name="assignInvalid">
    <bpelx:append>
    <bpelx:from expression="concat(ns8:getVariableData('inputVariable','payload','/ns3:Template/ns3:Projecto/ns3:Observacoes'), string('Projecto inválido!!'))"/>
    <bpelx:to variable="inputVariable" part="payload"
    query="/ns3:Template/ns3:Projecto/ns3:Observacoes"/>
    </bpelx:append>
    </assign>
    </catchAll>
    </faultHandlers>
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>2e56af66-6622-43e0-9adc-6d5f109cf374</guid>
    </sapattern>
    <sequence name="ValidarExigências" joinCondition="False">
    <assign name="assignVPIn">
    <copy>
    <from variable="inputVariable" part="payload"/>
    <to variable="invocaVP_initiate_InputVariable" part="payload"/>
    </copy>
    </assign>
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>2e56af66-6622-43e0-9adc-6d5f109cf374</guid>
    </sapattern>
    <invoke name="invocaVP" joinCondition="False"
    partnerLink="ValidacaoProjectos" portType="ns1:ValidacaoProjectos"
    operation="initiate"
    inputVariable="invocaVP_initiate_InputVariable">
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>f3bc9c04-f4d2-4e96-acc8-7a6c88a8ced5</guid>
    </sapattern>
    </invoke>
    <receive name="recebeVP" joinCondition="False"
    partnerLink="ValidacaoProjectos"
    portType="ns1:ValidacaoProjectosCallback" operation="onResult"
    createInstance="no" variable="recebeVP_onResult_InputVariable">
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>e9cdca59-888a-4e67-af54-a63ce2347ad3</guid>
    <guid>1eba96a8-330a-4e4d-a14b-cdf6641fa614</guid>
    </sapattern>
    </receive>
    <assign name="assignVPOut">
    <copy>
    <from variable="recebeVP_onResult_InputVariable" part="payload"/>
    <to variable="inputVariable" part="payload"/>
    </copy>
    </assign>
    </sequence>
    </scope>
    <scope variableAccessSerializable="no" name="AdicionarProjecto"
    joinCondition="False">
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>89c02eae-7788-4892-a616-e46b65ef1b50</guid>
    </sapattern>
    <sequence name="InvocarISAdicionarProjecto" joinCondition="False">
    <assign name="assignIS">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns3:Template/ns3:Projecto/ns3:NomeProjecto"/>
    <to variable="InvocaAdicionarProjecto_InputVariable" part="parameters"
    query="/ns2:AdicionarProjecto/ns2:nome"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns3:Template/ns3:Projecto/ns3:TipoProjecto"/>
    <to variable="InvocaAdicionarProjecto_InputVariable" part="parameters"
    query="/ns2:AdicionarProjecto/ns2:tipo"/>
    </copy>
    </assign>
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>89c02eae-7788-4892-a616-e46b65ef1b50</guid>
    </sapattern>
    <invoke name="InvocaAdicionarProjecto" joinCondition="False"
    partnerLink="NergaIS" portType="ns2:ServiceSoap"
    operation="AdicionarProjecto"
    inputVariable="InvocaAdicionarProjecto_InputVariable"
    outputVariable="InvocaAdicionarProjecto_OutputVariable">
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>76519bd3-c506-4c79-8190-8ff09abdd27d</guid>
    </sapattern>
    </invoke>
    </sequence>
    </scope>
    <assign name="assignOutput">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns3:Template/ns3:Projecto"/>
    <to variable="outputVariable" part="payload"/>
    </copy>
    </assign>
    <reply name="devolveProjecto" joinCondition="False" partnerLink="client"
    portType="ns4:CriarProjectoSA" operation="process"
    variable="outputVariable">
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>e728e550-f404-47bf-aa13-72429480cbc6</guid>
    <guid>0dbefef0-3d04-4356-abbc-b291ea40d256</guid>
    </sapattern>
    </reply>
    </sequence>
    </process>

  • REP-1401 'beforereport' Fatal PL/SQL error occurred. ORA 00000 normal.

    Hi,
    I am running the report Journals - General (132 char)- file name GLRGNJ.rdf from
    Oracle Report Builder 6.0.8.11.3.
    I have commented all the (srw.user_exit) in the Before Report trigger but i still
    get the message:
    REP-1401 'beforereport' Fatal PL/SQL error occurred. ORA 00000 normal,
    successful completion.
    Can anyone suggest a solution please?
    Thanks,
    Faris

    Dear sir, i am created one formula column in Reports6i and the following error has come. Could u please find out a solution. Thanks in advance.
    my function is below
    function CF_Branch_NameFormula return Char is
    lc_branch_name varchar2(100);
    begin
    SELECT rtrim(substr(FVT.DESCRIPTION
    ,instr(FVT.DESCRIPTION,'-',1)+1
    ,100)) INTO lc_branch_name
    FROM FND_FLEX_VALUES FFV, FND_FLEX_VALUES_TL FVT
    WHERE FFV.flex_value_Set_id = 1007956
    AND FFV.FLEX_VALUE_ID = FVT.FLEX_VALUE_ID
    AND FFV.FLEX_VALUE = FVT.FLEX_VALUE_MEANING
    AND FVT.DESCRIPTION <> 'xxx'
    and rownum<=1
    AND SUBSTR(FVT.FLEX_VALUE_MEANING,3,2) = :P_BRANCH;
    return (lc_branch_name);
    end;

  • REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found

    Hi guys,
    I am getting error 'REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found ' when run the report
    and i m also use formula column in my report.
    can any body help me why it's coming.
    following code is used in formula column plz check and verify:
    function CF_3Formula return Char is
    T1 VARCHAR2(100);
    begin
    SELECT
         VAT_REG_NO INTO T1
    FROM
         JA_IN_HR_ORGANIZATION_UNITS JIHOU,
         HR_LOCATIONS HL--,
         --MTL_TXN_REQUEST_HEADERS MTLH
    WHERE
    JIHOU.ORGANIZATION_ID=HL.INVENTORY_ORGANIZATION_ID AND
    JIHOU.LOCATION_ID=HL.LOCATION_ID AND
    --Jihou.ORGANIZATION_ID = Mtlh.Organization_Id AND
    -- Hl.INVENTORY_ORGANIZATION_ID =Mtlh.Organization_Id AND
    -- MTLH.ATTRIBUTE10=SUBSTR(HL.LOCATION_CODE,1,3) AND
    SUBSTR(HL.LOCATION_CODE,1,3)= :TO_ORG1 ;
    RETURN (T1);
    end;
    plz help me out.

    Hi;
    What is EBS version? Is it custom report or not?
    See below which is mention similar errors
    Autoinvoice Error: ORA-1403: no data found [ID 1209403.1]
    APXIIMPT - Payable Open Interface Import Fails on "REP-1401: 'cf_source_nameformula': Fatal PL/SQL error occurred. ORA-01403: no data found" [ID 222058.1]
    Regard
    Helios

  • REP-1401: 'cf_10formula': Fatal PL/SQL error occurred. ORA-06502: PL/SQL: numeric or value error

    Hi Team,
    I am running one conc programme.
    After running I am getting below  error. I checked the issue on metalink  and other, seems that it is an size related issue. I have increased the size of formula columns and placeholdder too.
    But still getting issue.
    My requirement is to get comma seperated values using SQL query itself. Neither i wanted to create layout of the report , since it is a XML publisher report and nor  I am including it on RTF template.
    I want the CF_10 formula column to be populated with comma seperated values.
    MSG-00187: From Date 01-Sep-2014
    REP-1401: 'cf_10formula': Fatal PL/SQL error occurred.
    ORA-06502: PL/SQL: numeric or value error
    And Here is my code for CF_10
    function CF_10Formula return Number is
    begin
       SELECT NVL(TO_CHAR(sum(Amount),'99,99,99,999'),0) into :CP_5 --NVL(ROUND(sum(Amount)),0) into :CP_5
    --  xxhw_Coll_cat(category)     "Intercat  Catg"
    FROM hhxw_Region_col_v
    WHERE Category IN ('Intercompany - CATV')
    AND trunc(gl_date) BETWEEN TO_DATE(:P_FROM_DATE, 'DD/MM/RRRR') AND TO_DATE(:P_TO_DATE, 'DD/MM/RRRR');
    RETURN ROUND(:CP_5);
    end;
    Anyone please suggest me.
    Regards,
    Sachin

    Hi,
    1)Why are you selecting the value into a report item? Select into a local variable and return that
    RETURN :CP_5 --> This one!!
    2)And you should avoid applying functions to DB columns in where clauses wherever possible, so oracle can use indexes on them if applicable:
    AND gl_date >= To_date(:P_FROM_DATE, 'DD/MM/RRRR')
    AND gl_date < To_date( :P_TO_DATE, 'DD/MM/RRRR') + 1;
    I think you are taking 2 column in the Layout CF_10 and CP_5 right? if so, then use below Query.
    FUNCTION cf_10formula
      RETURN NUMBER
    IS
      v_amount NUMBER:null;
    IS
    BEGIN
      BEGIN
        SELECT nvl(round(SUM(amount)), 0)
        INTO   v_amount --> Retruns the value for CF_10 column
        FROM   hhxw_region_col_v
        WHERE  category IN ( 'Intercompany - CATV' )
        AND    gl_date >= to_date(:P_FROM_DATE, 'DD/MM/RRRR')
        AND    gl_date < to_date( :P_TO_DATE, 'DD/MM/RRRR') + 1;
        :CP_5 := nvl(trunc(v_amount),0); --> Retruns the value for CP_5 column
      EXCEPTION
      WHEN OTHERS THEN
        v_amount := 0;
        srw.message(1003,'Error in Getting  :' ||p_from_date);
      END;
    END;
    And
    If you've got a number function returning into a number field then all you should need to do to make the comma appear is to change the number format mask in field.
    From 40000 to 40,000

  • Error in Report ORA-24801

    Hi All,
    I am trying to run a report containing the images stored in blob column in database 10g, while running the report I got following error ..
    ORA-24801: illegal parameter value in OCI lob function
    Cause: One of the parameter values in the OCI lob function is illegal.
    Action: Check every parameter in the OCI Lob function call to make sure they are correct. Offsets should be greater than or equal to one.
    I didn't understand with this the cause and the solution of error....Any body could please tell what exactly it means and what we should do.
    Any help will be highly appriciated.
    Best Regards

    Hi Don,
    The reason why i posted the item on 'data Connectivity issues' is because i suspect the problem is with the connection string.Though i had provided the correct connection string,re-writing the connection string with the same info might help to fix the issue with loading the report.
    Does it mean that there is a problem in the connectivity?
    I have a risk here that i cant re-write the connection string..i.e to open the RPT file in VS2005 and bind it.The production web server & database server sits in a  third party environment and it is not in the company network.So i cant connect to this server to re-write from any other severs in the network.
    Is there any fix which can applied to the server to get this issue resolved?
    Cheers
    Nithya.

  • Error while exporting : ORA-24801: illegal parameter value in OCI lob funct

    hello,
    I am doing an export on a 10.2.0.4 , solaris machine.
    The table i am doing an export has a blob & clob.
    During the export I get the error :
    EXP-00056: ORACLE error 24801 encountered
    ORA-24801: illegal parameter value in OCI lob function
    In metalink it was given : Check every parameter in the OCI Lob function call to make sure they
         are correct. Offsets should be greater than or equal to one.
    Where should I check for that OCI Lob function. Or is there any other alternative to do the export.
    Thanks for any help.

    I have increased the space on the mount I was doing the export and that solved the problem.
    Thanks

  • The database error text is: ORA-01843: not a valid month

    I am trying to use a date field as a query filter and I keep getting the
    following error:
    A database error occurred. The database error text is: ORA-01843: not a
    valid month. (WIS 10901).
    When I remove the query filter and run the query it works as
    expected. I want to be able to allow the users to use the date field in order
    to select a date range. Can someone provide me with some information on how to
    resolve this issue.

    SQL> SELECT (to_char(tO_date('09/29/2006', 'mm/dd/yyyy'))||':'||TO_CHAR(systimestamp,'hh24:mi:ss:ff6'))
      2  FROM dual;
    (TO_CHAR(TO_DATE('09/29/2006
    29-SEP-06:01:33:09:023000
    But you want mm/dd/yyyy hh24:mi:ss:ff6 format then use TO_CHAR function for format specifier
    SQL> SELECT to_char(to_timestamp((to_char(tO_date('09/29/2006', 'mm/dd/yyyy'))||':'||TO_CHAR(systimestamp,'hh24:mi:ss:ff6')), 'dd/mm/yyyy hh24:mi:ss:ff6'),'mm/dd/yyyy hh24:mi:ss:ff6')
      2  FROM DUAL
      3  /
    TO_CHAR(TO_TIMESTAMP((TO_CHAR
    09/29/0006 01:40:27:113000
    SQL> Khurram

  • A database error occured. The database error text is: ORA-29275: partial multibyte character . (WIS 10901)

    Hi,
    My Webi report is geeting failed with the error
    "A database error occured. The database error text is: ORA-29275: partial multibyte character . (WIS 10901)"
    may i know the root cause of the above error and how to resolve it. I am using BO 3.1.
    Its very important to provide the report. Please help urgently.
    Thanks in advance.
    Abid

    Hi Abid,
    Please see SAP Note 1556127.
    Symptom
    A database error occurs after refreshing a web intelligence report in java report panel or web intelligence in interactive mode
    The database error text is: ORA 29275 with partial multibyte character (WIS 10901)
    Environment
    windows 2003 Server
    Cause
    Environment variables are not set with value UTF-8:LC_ALL,LANG, and NLS_LANG
    Resolution
    Set following system environment variables: LC_ALL,LANG, and NLS_LANG with value UTF-8. For example, LC_ALL=EN_US.UTF-8

  • Custom Interface Program Errors out with ORA-01722: invalid number in R12

    Hi,
    We were upgrading to R12 in which our custom interface load program errors out with "ORA-01722: invalid number". Please find structure of control file as below :
    LOAD DATA
    APPEND
    INTO TABLE RRAT_RCAP_GIO_MAN_ADJ_STG
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED by '"'
    TRAILING NULLCOLS
    PERIOD_NAME CHAR "ltrim(rtrim(:PERIOD_NAME))"
    ,SOURCE_TYPE CHAR "ltrim(rtrim(:SOURCE_TYPE))"
    ,ADJ_ACCOUNT CHAR "ltrim(rtrim(:ADJ_ACCOUNT))"
    ,USD_NET                    INTEGER EXTERNAL
    ,ERROR_CODE CONSTANT 'LOADED DATA'
    ,PROCESS_FLAG CONSTANT 1
    ,CREATED_BY "fnd_global.user_id"
    ,CREATION_DATE sysdate
    ,LAST_UPDATED_BY "fnd_global.user_id"
    ,LAST_UPDATE_DATE sysdate
    ,LAST_UPDATE_LOGIN "fnd_global.login_id"
    ,REQUEST_ID "fnd_global.conc_request_id"
    =====================================Log file ================
    Record 1: Rejected - Error on table "XXATORCL"."XXAT_VCAP_GIO_MAN_ADJ_STG", column USD_NET.
    ORA-01722: invalid number
    ===================sample file ==========================
    JUL-11,Manual,8213-880011-00000000-259390-1Z-0000-0000,1001
    JUL-11,Manual,8213-880011-00000000-253701-1Z-0000-0000,73
    ==========================================
    I had tried with last successfully uploaded file as well which is also now not uploading.
    Please help me in this issue.
    Thanks,
    Piyush

    i am using R12 now. Please avoide INTEGER EXTERNAL part from the control file. please refer below :
    LOAD DATA
    APPEND
    INTO TABLE RRAT_RCAP_GIO_MAN_ADJ_STG
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED by '"'
    TRAILING NULLCOLS
    PERIOD_NAME CHAR "ltrim(rtrim(:PERIOD_NAME))"
    ,SOURCE_TYPE CHAR "ltrim(rtrim(:SOURCE_TYPE))"
    ,ADJ_ACCOUNT CHAR "ltrim(rtrim(:ADJ_ACCOUNT))"
    ,USD_NET
    ,ERROR_CODE CONSTANT 'LOADED DATA'
    ,PROCESS_FLAG CONSTANT 1
    ,CREATED_BY "fnd_global.user_id"
    ,CREATION_DATE sysdate
    ,LAST_UPDATED_BY "fnd_global.user_id"
    ,LAST_UPDATE_DATE sysdate
    ,LAST_UPDATE_LOGIN "fnd_global.login_id"
    ,REQUEST_ID "fnd_global.conc_request_id"
    ====================
    Srini,
    Just one thing i want to explain you that previously it was working fine but suddenly (might after upgrading in R12) started giving error. I had tested with old data files also which were loaded successfully in the system. but now it is giving error. Please help me in this issue.
    Regards,

Maybe you are looking for

  • How can I use a shared library made with the application builder?

    Hi, I am using LabVIEW 7.1 running on Slackware 10.1 (kernel 2.4.29) and I am trying to call a graph display from a C program that I use for debugging VME access from a VMIVME controler. So using the application builder I built the VI as a shared lib

  • Posting error from payroll to FI

    Hi, We are having an issue while making FI posting. Scenario: We created few new Wage Types for some specific purpose related to a benefit process, and delimited the existing wage types. New wage types created effective 1st May and the old wage types

  • Change cursor color in Illustrator CS5

    My cursor has decided to display in an impossibly light blue. I want my black cursor back. What do I do? Thanks, Dave

  • Upgrade Elements 6 to Elements 10. Now have two catalogs.

    I upgraded from 6 to 10. 10 converted 6 catalog to 10. Now two catalogs  The new 10 catalog has all the pictures duplicated but only uses the thumbnails from that catalog. File properties shows that 10s stillsing the 6 catalog for the full picture. R

  • Install itunes 10.7 on Windows 7

    Problem installing iTunes 10.7 on Windows 7