Date issue - Data Template

Hi,
I am using a data template plus CP combination to generate XMLP reports. From CP i am passing a standard date parameter to the data template. The issue is that there seems to be a problem accesing this variable in the data template SQL where conditions.
for ex:-
The value that CP passes => "2007-05-11 00:00:00.0"
In data template the parameter is like <parameter name="endDate" dataType="date"/>
The where condition is like h.end_date <= nvl(:endDate,h.end_date)
Here :endDate is always null. Interestingly in the XML output the date value is displayed properly for the parameter endDate like <endDate>2007-05-11 00:00:00.0</endDate>
What is the issue here. Pls. suggest on how to handle dates.
Thanks,
Suresh.

Hi,
I am using a data template plus CP combination to generate XMLP reports. From CP i am passing a standard date parameter to the data template. The issue is that there seems to be a problem accesing this variable in the data template SQL where conditions.
for ex:-
The value that CP passes => "2007-05-11 00:00:00.0"
In data template the parameter is like <parameter name="endDate" dataType="date"/>
The where condition is like h.end_date <= nvl(:endDate,h.end_date)
Here :endDate is always null. Interestingly in the XML output the date value is displayed properly for the parameter endDate like <endDate>2007-05-11 00:00:00.0</endDate>
What is the issue here. Pls. suggest on how to handle dates.
Thanks,
Suresh.

Similar Messages

  • Data Template Issue

    Hi,
    I am just starting off with Data templates, and am facing some strange issues.
    I am trying to extract all the employees for all the departments and print the department level salary and Grand Total (total salary of all the departments).
    The DT that i am using is :
    <dataTemplate name="Emp" defaultPackage="" description="Employees: Sample Data Template">
    <properties>
    <property name="include_parameters" value="true"/>
    <property name="include_null_Element" value="true"/>
    <property name="xml_tag_case" value="upper"/>
    <property name="db_fetch_size" value="500"/>
    <property name="scalable_mode" value="off"/>
    <property name="include_rowsettag" value="false"/>
    <property name="debug_mode" value="on"/>
    </properties>
    <parameters/>
    <lexicals/>
    <dataQuery>
    <sqlStatement name="Q1" dataSourceRef=""><![CDATA[SELECT DEPTNO,
                             DNAME,
                             LOC
                        from scott.dept
                        order by DEPTNO]]>
    </sqlStatement>
    <sqlStatement name="Q2" dataSourceRef=""><![CDATA[SELECT EMPNO,
                             ENAME,
                             SAL,
                             nvl(COMM,0) COMM,
                             DEPTNO
                        from scott.emp
                        where DEPTNO = :DEPTNO]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_DEPT" source="Q1" groupFilter="">
    <element name="DEPTNO" value="DEPTNO" function=""/>
    <element name="DNAME" value="DNAME" function=""/>
    <element name="DEPTSAL" value="G_EMP.SAL" function="SUM()"/>
    <group name="G_EMP" source="Q2" groupFilter="">
    <element name ="EMPNO" value="EMPNO" function=""/>
    <element name ="ENAME" value="ENAME" function=""/>
    <element name ="SAL" value="SAL" function=""/>
         <element name ="COMM" value="COMM" function=""/>
    </group>
    </group>
    </dataStructure>
    </dataTemplate>
    When I run this from the Concurrent Program, It gets the correct data for Department 10, But for Depts 20,30 and 40, it again prints the same employee record as that of dept 10.
    I am not sure where i am going wrong.
    Thanks,
    Ashish

    Hi,
    Combining into 1 query will not always be feasible. The example in question is very elementary. However, real life problems would be very complex and would require different queries to be joined.
    From the user guide:
    "XML Publisher tests have shown that using bind variables is more efficient than using the link tag."
    I even tried with <link> (from another example on the XML Publisher blog (http://blogs.oracle.com/xmlpublisher/2007/02/16#a147) but it gives me more errors:
    <sqlStatement name="Q1">
    <![CDATA[
        SELECT DEPTNO,DNAME,LOC from scott.dept
        order by deptno ]]>
    </sqlStatement>
    <sqlStatement name="Q2">
    <![CDATA[
         SELECT  DEPTNO, EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,nvl(COMM,0) COMM
         from scott.EMP ]]>
    </sqlStatement>
    <link name="DEPTEMP_LINK" parentQuery="Q1" parentColumn="DEPTNO" childQuery="Q2" childColumn="DEPTNO"/>
    I get the following runtime error:
    Calling XDO Data Engine...
    [032707_122656442][][EXCEPTION] java.sql.SQLException: ORA-00920: invalid relational operator
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:589)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1972)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:850)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2591)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2950)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:656)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:582)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeData(XMLPGEN.java:456)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:281)
         at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:251)
         at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:192)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:222)
         at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:334)
         at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:236)
         at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:272)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    Looks like I am better off NOT selecting the DEPTNO column from the child query!
    Ashish

  • Issues with using Outer join in Data Template

    Hi all,
    this is my data in two tables .
    Table Ronny1
    colA colB
    1 u
    2 v
    3 x
    Table Ronny2
    colC colD
    1 q
    2 r
    This is my data template
    <dataTemplate name="MGF" dataSourceRef="Source1">
         <dataQuery>
              <sqlStatement name="Q1" dataSourceRef="Source1">
                   <![CDATA[select C, D  from Ronny2]]>
              </sqlStatement>
              <sqlStatement name="Q2" dataSourceRef="Source2">
                   <![CDATA[select A , B from lokesh1 where A = :C]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G1" source="Q1">
                   <group name="G2" source="Q2">
                        <element name="A" value="A"/>
                        <element name="B" value="B"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>
    Now this would give me result as
    A B
    1 u
    2 v
    however my requirement is this
    A B
    1 u
    2 v
    3 x
    that is, i want to display all the rows of table Ronny1 and matching rows from table Ronny2. I tried modifiying my second sql as
    <![CDATA[select A , B from lokesh1 where A = :C (+)]]> ( using a outer join)
    but this does give me correct data and comes back with the cartesion product.
    Can anyone please answer this for me that how can we use the outer join in data templaes.
    Thanks
    Ronny

    hey vetsrini,
    sorry for the confusion here,
    actually i want to display all the rows from table Ronny1 and i am also pulling in the matching rows from table Ronny2 and my data structure looks as ( pulling in column D from table Ronny2)
    <dataStructure>
    <group name="G1" source="Q1">
    <group name="G2" source="Q2">
    <element name="A" value="A"/>
    <element name="B" value="B"/>
    <element name="D" value="D"/>
    </group>
    </group>
    </dataStructure>
    and this is what i want the output to be
    A B D
    1 u q
    2 v r
    3 x
    Hence the row where A <> C the data in the D column will be null, same as in the case of outer join.
    any suggestions
    Thx
    Ronny

  • Regarding Data Template Issue

    HI All,
    I am using the Data Template to publish output.
    Based on Data Template.xdo
    <?xml version = '1.0' encoding = 'utf-8'?>
    <report version="1.1" xmlns="http://xmlns.oracle.com/oxp/xmlp" defaultDataSourceRef="CNE1">
    <title>Based on Data Template</title>
    <properties>
    <property name="showControls" value="true"/>
    <property name="online" value="true"/>
    <property name="parameterColumns" value="3"/>
    <property name="openLinkInNewWindow" value="true"/>
    <property name="autoRun" value="true"/>
    </properties>
    <dataModel defaultDataSet="New DataSet 2">
    <dataSet id="New DataSet 2">
    <dataTemplate name="MyDT" dataSourceRef="CNE1">
                        <dataQuery>
                             <sqlStatement name="Q_Emp">
                                  <![CDATA[ SELECT * FROM EMP]]>
                             </sqlStatement>
                        </dataQuery>
                   </dataTemplate>
    </dataSet>
    </dataModel>
    <valueSets/>
    <parameters/>
    <templates/>
    <burst enabled="false"/>
    </report>
    I have created the template & register the same in EBS.Also created a Concurrent Program with XDODTEXE as the executable.
    I am getting the following error :
    Custom APPS: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XX_TEST_DP module: XX: Test Data template -1
    Current system time is 12-SEP-2007 00:26:25
    XDO Data Engine Version No: 5.6.3
    Resp: 20420
    Org ID : 83
    Request ID: 7440294
    All Parameters:
    Data Template Code: XX_TEST_DP
    Data Template Application Short Name: CUSTOM
    Debug Flag: N
    Calling XDO Data Engine...
    [091207_122635145][][EXCEPTION] java.lang.NullPointerException
         at oracle.apps.xdo.dataengine.DataTemplateParser.GetNodeNumChildren(DataTemplateParser.java:345)
         at oracle.apps.xdo.dataengine.DataTemplateParser.templateParser(DataTemplateParser.java:277)
         at oracle.apps.xdo.dataengine.XMLPGEN.setDataTemplate(XMLPGEN.java:599)
         at oracle.apps.xdo.dataengine.DataProcessor.setDataTemplate(DataProcessor.java:193)
         at oracle.apps.xdo.oa.util.DataTemplate.<init>(DataTemplate.java:136)
         at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:282)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at com.sun.java.util.collections.ArrayList.RangeCheck(ArrayList.java:492)
         at com.sun.java.util.collections.ArrayList.get(ArrayList.java:306)
         at oracle.apps.xdo.dataengine.DataTemplateParser.getParentDataSource(DataTemplateParser.java:1737)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:320)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:279)
         at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:266)
         at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:205)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:237)
         at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:364)
         at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:236)
         at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:293)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 7440294 on node SJCORCL05 at 12-SEP-2007 00:26:37.
    Post-processing of request 7440294 failed at 12-SEP-2007 00:26:44 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 12-SEP-2007 00:26:44
    Please help.
    Thanks
    Bharat B Nayak
    [email protected]

    Go to DSO -> manage.
    On content Tab, you get option for selective deletion (last button "selective").
    Mention your selections inside Delete Selection & start the job.
    This will delete the selected data only from active table.
    Please note the data from change log will not be deleted. No selective deletion is possible on Change log. However, you can delete the older change logs if not necessary. Go to Environment -> Delete Change Log Data & specify the date or days.

  • Report Based on XML Data Template is timing out

    Hi there,
    i have an XML publisher report based on an XML data template that i've written. The report is working fine except when there is huge data that is supposed to come out, its timing out. Ive set the db_fetch_size parameter to 20 and scalable_mode to on but its still timing out.
    If anyone has a solutiom or a thought it would be much appreciated.
    Thanks.

    Thanks for the reply.
    Well when i'm opening the report , i wait for about 15 seconds then 'Page Cannot be Displayed' appears on my browser. I'm having this case only when i'm expecting huge data. By huge data i mean that the report gets informations about a deal, when the deal has 10 categories the report runs fine, but when i add all catgories, about 1000, it gives me the 'Page cannot be displayed' error. I'm guessing its a time out issue since i've set the scalable_mode parameter to on. Any thoughts ???

  • XML Publisher --Data Template-Help

    Hi
    we are using XML Publisher attached to R12 , we are using data template ( .XML file) in data definition .
    we have a requirement for master details report. for that we have parent query and child query .the data coming to parent query should be the parameter to child query
    Exp-- Parent Query-- select empno from emp
    Child Query --select  * from dept where empno=:p_empno (p_empno =empno from Parent query ) 
    For this requirement we are creating a data template (.XML file) . we are successfully to write for the parent query, but we fails when come to child query. Please help us how it can be wrote in data template . You can send any example related to this issue.

    This forum is noway related to XML Publisher. I had redirected you to the actual BI Publisher already once. You should post it there.

  • Handling Null element in Data Template

    Hi experts ,
    I am facing an issue, include_null_Element is not working properly. Find the sample code below and please help me out with your suggestion. Since my data template file is big i pasting less amount
    Data template file:-
    <?xml version="1.0" encoding="UTF-8" ?>
    <dataTemplate name="sample" defaultPackage="sample" version="1.0">
    <properties>
    <property name="xml_tag_case" value="lower " />
    <property name="scalable_mode" value="off" />
    <property name="debug_mode" value="on" />
    <property name="db_fetch_size" value="20" />
    <property name="include_parameters" value="true"/>
    <property name="include_null_Element" value="TRUE"/>
    <property name="include_rowsettag" value="true"/>
    </properties>
    <dataStructure>
    <*group name="G_c_fnd_precision" dataType="varchar2" source="Q_currency_precision">*
    *<element name="c_fnd_precision" dataType="number" value="C_FND_PRECISION"/>*
    *<element name="c_fnd_currency_code" dataType="varchar2" value="C_FND_CURRENCY_CODE"/>*
    *<group name="G_one_requestor_name" dataType="varchar2" source="Q_one_requestor">*
    *<element name="one_requestor_name" dataType="varchar2" value="ONE_REQUESTOR_NAME"/>*
    *</group>*
    *<group name="G_cancel_release_date" dataType="varchar2" source="Q_cancel_release">*
    *<element name="cancel_release_date" dataType="date" value="CANCEL_RELEASE_DATE"/>*
    </group>
    </group>
    </dataStructure>
    </dataTemplate>
    output (GETTING):-
    <LIST_G_C_FND_PRECISION>
         <G_C_FND_PRECISION>
              <C_FND_PRECISION>2</C_FND_PRECISION>
              <C_FND_CURRENCY_CODE>USD</C_FND_CURRENCY_CODE>
              <LIST_G_ONE_REQUESTOR_NAME>
                        <G_ONE_REQUESTOR_NAME>
                        <ONE_REQUESTOR_NAME>Green, Mr. Terry</ONE_REQUESTOR_NAME>
                        </G_ONE_REQUESTOR_NAME>
              </LIST_G_ONE_REQUESTOR_NAME>
         </G_C_FND_PRECISION>
    </LIST_G_C_FND_PRECISION>
    OUTPUT (TO BE GET) :-
    <LIST_G_C_FND_PRECISION>
         <G_C_FND_PRECISION>
              <C_FND_PRECISION>2</C_FND_PRECISION>
              <C_FND_CURRENCY_CODE>USD</C_FND_CURRENCY_CODE>
              <LIST_G_ONE_REQUESTOR_NAME>
                        <G_ONE_REQUESTOR_NAME>
                        <ONE_REQUESTOR_NAME>Green, Mr. Terry</ONE_REQUESTOR_NAME>
                        </G_ONE_REQUESTOR_NAME>
              </LIST_G_ONE_REQUESTOR_NAME>
    <LIST_G_CANCEL_RELEASE_DATE>
    </LIST_G_CANCEL_RELEASE_DATE>
         </G_C_FND_PRECISION>
    </LIST_G_C_FND_PRECISION>
    Need ur suggestion where i am making mistake. Thanks in Advance
    --Santhosh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Raj,
    Already i tried by changing case for all property which i defined, but not making any sense.. :(
    Thanks in advance
    --Santhosh                                                                                                                                                                                                                                                                                                   

  • Reg: Error in Data Template ( java.sql.SQLException: ORA-00900: invalid SQL

    Hi Experts,
    Good Morning..
    I registered the data template which i created in oracle apps and while i run that, ended in error... Plz help me..
    Step :-1 Used Data Template as below:-
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <dataTemplate name="EMP" defaultPackage="" description="Employee Data">
    - <properties>
    <property name="include_parameters" value="true" />
    <property name="include_null_Element" value="true" />
    <property name="xml_tag_case" value="upper" />
    <property name="db_fetch_size" value="500" />
    <property name="scalable_mode" value="off" />
    <property name="include_rowsettag" value="false" />
    <property name="debug_mode" value="off" />
    </properties>
    <parameters/>
    <parameters name="pdeptno" dataType="number" defaultValue=" ">
    </parameters>
    <lexicals />
    - <dataQuery>
    - <sqlStatement name="DEPT" dataSourceRef="">
    - <![CDATA[
              SELECT DEPTNO,DNAME,
              LOC,CURSOR(SELECT  EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,nvl(COMM,0) COMM from EMP ) as EMP
              from dept
              where deptno=pdeptno
              order by deptno]]>
    </sqlStatement>
    </dataQuery>
    </dataTemplate>
    Step -2:-
    Registered in xml publisher administrator
    Step -3:-
    While i am running this getting below error-
    XDO Data Engine Version No: 5.6.3
    Resp: 20419
    Org ID : 204
    Request ID: 5380496
    All Parameters: pdeptno=10
    Data Template Code: EMP_DD
    Data Template Application Short Name: FND
    Debug Flag: N
    {pdeptno=10}
    Calling XDO Data Engine...
    java.sql.SQLException: ORA-00900: invalid SQL statement
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:810)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
         at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:850)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1134)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3339)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3384)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:392)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:286)
         at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:273)
         at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:215)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:254)
         at oracle.apps.xdo.dataengine.DataProcessor.processDataStructre(DataProcessor.java:390)
         at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:355)
         at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:348)
         at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:293)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Start of log messages from FND_FILE
    Any mistake i made.. Issue may be silly..plz help me...
    Thanks in advance..
    Happy

    Hi all,,,,
    Thank so much for your valuable response regarding this issue..
    Actually my scenario meet this below example, path for that example:-.
    http://blogs.oracle.com/xmlpublisher/2007/02/data_templates_without_groupin.html
    I am simply executing that data template. but getting this error :-
    XDO Data Engine Version No: 5.6.3
    Resp: 20419
    Org ID : 204
    Request ID: 5380496
    All Parameters: pdeptno=10
    Data Template Code: EMP_DD
    Data Template Application Short Name: FND
    Debug Flag: N
    {pdeptno=10}
    Calling XDO Data Engine...
    java.sql.SQLException: ORA-00900: invalid SQL statement
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:810)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
         at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:850)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1134)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3339)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3384)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:392)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:286)
         at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:273)
         at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:215)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:254)
         at oracle.apps.xdo.dataengine.DataProcessor.processDataStructre(DataProcessor.java:390)
         at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:355)
         at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:348)
         at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:293)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Start of log messages from FND_FILE

  • Problem with parameters in Data Template

    Hello,
    I created some reports using the data template and didn't have any problems. I wanted to change the name of a couple of my parameters and now I can't get any data returned in my reports. If I remove the parameters data is returned or if I rename the parameters to something else data is returned. It seems like it has something to do with these two names of the parameters that I'm using that is causing the report not to run, but I have no idea why or where to even look.
    Here is my example report:
    With parameter names P_JUR and P_TAXYR my report runs without any problems.
    <dataTemplate name="test" description="test Report">
         <parameters>
              <parameter name="P_JUR" dataType="character"/>
              <parameter name="P_TAXYR" dataType="number"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="RP"><![CDATA[select p.jur, p.parid, p.taxyr,
           p.luc, p.nbhd, o.own1, p.adrno,
           p.adrdir||decode(p.adrdir,'','',' ')||p.adrstr||decode(p.adrsuf,'','',' ')||p.adrsuf addr
            from pardat p, owndat o
    where p.jur = o.jur
       and p.parid = o.parid
       and p.taxyr = o.taxyr
       and p.cur = o.cur
         and p.cur = 'Y'
       and p.jur = :p_jur
       and p.taxyr = :p_taxyr
    and rownum < 10]]></sqlStatement>
         </dataQuery>
         <dataTrigger name="beforeReport" source="bipub.SETUSERIDSESSION(:P_USERNAME)"/>
         <dataStructure>
              <group name="RP" source="RP">
                   <element name="JUR" value="JUR"/>
                   <element name="PARID" value="PARID"/>
                   <element name="TAXYR" value="TAXYR"/>
                   <element name="CMAP" value="CMAP"/>
                   <element name="LUC" value="LUC"/>
                   <element name="OWN1" value="OWN1"/>
                   <element name="NBHD" value="NBHD"/>
                   <element name="ADRNO" value="ADRNO"/>
                   <element name="ADDR" value="ADDR"/>
              </group>
         </dataStructure>
    </dataTemplate>
    As soon as I change my parameters and remove the "P_" - changed to JUR and TAXYR my report no longer returns data:
    <dataTemplate name="test" description="test Report">
         <parameters>
              <parameter name="JUR" dataType="character"/>
              <parameter name="TAXYR" dataType="number"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="RP"><![CDATA[select p.jur, p.parid, p.taxyr,
           p.luc, p.nbhd, o.own1, p.adrno,
           p.adrdir||decode(p.adrdir,'','',' ')||p.adrstr||decode(p.adrsuf,'','',' ')||p.adrsuf addr
            from pardat p, owndat o
    where p.jur = o.jur
       and p.parid = o.parid
       and p.taxyr = o.taxyr
       and p.cur = o.cur
         and p.cur = 'Y'
       and p.jur = :jur
       and p.taxyr = :taxyr
    and rownum < 10]]></sqlStatement>
         </dataQuery>
         <dataTrigger name="beforeReport" source="bipub.SETUSERIDSESSION(:P_USERNAME)"/>
         <dataStructure>
              <group name="RP" source="RP">
                   <element name="JUR" value="JUR"/>
                   <element name="PARID" value="PARID"/>
                   <element name="TAXYR" value="TAXYR"/>
                   <element name="CMAP" value="CMAP"/>
                   <element name="LUC" value="LUC"/>
                   <element name="OWN1" value="OWN1"/>
                   <element name="NBHD" value="NBHD"/>
                   <element name="ADRNO" value="ADRNO"/>
                   <element name="ADDR" value="ADDR"/>
              </group>
         </dataStructure>
    </dataTemplate>
    I know it's getting my values because when I run the report I get this output:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <TEST>
    <JUR>040</JUR>
    <TAXYR>2008.0</TAXYR>
    <LIST_RP />
    </TEST>
    I can change the parameter names to BOB, TOM, A, B, C, etc. and the report runs fine. It's just those two parameters JUR and TAXYR that do not work. I'm integrating this with another system which is why it's important is uses JUR and TAXYR. Anyone have any idea where to check or what I can check to see why it wouldn't work with only those two parameter names?
    Thanks

    Always keep the parameter name with some standard :) to avoid these kind of issues.
    keep PARAM_XYZ
    like PARAM_TZXYR , PARAM_JUR

  • How to remove an XML file from Data Template in Data Definition Screen

    Hi,
    Issue: I have uploaded the file in Data definition in Data Template.
    How to remove it.
    Also what does each file type mean?
    XML Schema
    Data Template
    Preview file
    Bursting control File
    I have an XML file and XSL file. I need to have an output in XML.
    So I installed my XML file in data template in data definition.
    And XSL file in Templates.
    Am I correct?
    11.0.10.2
    Regards,
    Avijit

    Issue: I have uploaded the file in Data definition in Data Template.
    How to remove it.You cannot remove it but you can end-date it.
    Also what does each file type mean?
    XML Schema
    Data Template
    Preview file
    Bursting control FileThis is explained in "Oracle XML Publisher Administration and Developer's Guide Release 12" manual -- http://docs.oracle.com/cd/B34956_01/current/acrobat/120xdoig.pdf
    I have an XML file and XSL file. I need to have an output in XML.
    So I installed my XML file in data template in data definition.
    And XSL file in Templates.
    Am I correct?Correct -- See Chapter 2 "Creating the Template" and Chapter 5 "Data Templates and Chapter" in the same doc referenced above for details.
    Thanks,
    Hussein

  • How to pass the parameter in "Data Template"

    Hi,
    Can any one please help me out to sort the problem, "Passing Parameter and checking condition for the parameters in the "data template".
    And also please tell me how to link the multiple query in "Data template", as per the user guide i have it says to use link tag. But its not working with my "Data template".
    Please check the data template given below and help me out to sort the problem.
    And one more thing is in table the data type for number and name is varchar. I dono weather i can use that data type in "Data template", please let me know if i can.
    <?xml version="1.0"?>
    <dataTemplate name="VENODR_DETAILS">
    <parameters>
    <parameter name="VENDOR_NUM" dataType="number"/>
    <parameter name="VENDOR_NAME" dataType="char"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT pv.segment1 ven_num,
              pv.vendor_name vname,
                          pvs.vendor_site_code VEN_SIT_CODE,
              pvs.purchasing_site_flag PURCH_SIT_FLG,
              pvs.pay_site_flag PAY_SIT_FLG,
              pv.vendor_name VENDOR_ADDR_NAME,
              pvs.address_line1 VENDOR_ADDR1,
              pvs.address_line2 VENDOR_ADDR2,
              pvs.city VENDOR_CITY,
              pvs.state VENDOR_STATE,
              pvs.zip VENDOR_ZIP
    FROM vendors pv,supplier_info pvi,vendor_sites_all pvs
    where pv.segment1 = pvi.vendor_id(+)
    and pv.vendor_id = pvs.vendor_id
    and (pv.segment1=:VENDOR_NUM or pv.vendor_name=:VENDOR_NAME)
    ]]>
    </sqlStatement>
    <sqlStatement name="Q2">
    <![CDATA[select pvc.area_code||'-'||pvc.phone Contact_Phone,
    pvc.last_name||' '||pvc.first_name||' '||pvc.middle_name cname
    from vendor_contacts pvc,vendor_sites_all pvs,vendors pv
    where pvs.vendor_site_id = pvc.vendor_site_id
    and pv.vendor_id = pvs.vendor_id
    and pv.segment1=(pv.segment1=:VENDOR_NUM or pv.vendor_name=:VENDOR_NAME)
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="VENDOR" source="Q1">
    <element name="VENDOR_NUMBER" value="ven_num"/>
    <element name="VENDOR_NAME" value="vname"/>
    <element name="CATEGORY" value="VENDOR_CAT"/>
    <element name="UPDATE_DATE" value="UPDATE_DT"/>
         <group name="VENDOR_SITE" source="Q1">
         <element name="VEN_SIT_CODE" value="VEN_SIT_CODE"/>
         <element name="PURCH_SIT_FLG" value="PURCH_SIT_FLG"/>
         <element name="PAY_SIT_FLG" value="PAY_SIT_FLG"/>
         <element name="VENDOR_ADDR1" value="VENDOR_ADDR1"/>
         <element name="VENDOR_ADDR2" value="VENDOR_ADDR2"/>
         <element name="VENDOR_CITY" value="VENDOR_CITY"/>
         <element name="VENDOR_STATE" value="VENDOR_STATE"/>
         <element name="VENDOR_ZIP" value="VENDOR_ZIP"/>
         </group>
    </group>
    <group name="VENDOR_CONTACT" source="Q2">
    <element name="Contact_Phone" value="Contact_Phone"/>
    <element name="cname" value="cname"/>
    </group>
    </dataStructure>
    </dataTemplate>
    Thanks in advance.
    Regards,
    SP

    Hi Rani,
    I see one issue in the Q2 with the where statement:
    and pv.segment1=(pv.segment1=:VENDOR_NUM or pv.vendor_name=:VENDOR_NAME)
    the right one should be
    and pv.vendor_id = :VEN_VENDOR_ID
    the variable VEN_VENDOR_ID you have to select from the first query Q1. Add here after select
    pv.vendor_id VEN_VENDOR_ID,
    Regarding the other question about the data types, well, number and varchar2 is fine, perhaps char also, but go with varchar2 instead.
    One last note: you should not mix uppercase and lowercase, keep it clear and structured, check your element names and values.
    Best Regards
    Volker

  • Unable to debug the Data Template Error in the Log file

    Hi,
    I am unable to debug the log file error message Please can anybody explain me in detail where the error lies and how to solve the error.The log file shows the following message.
    XDO Data Engine ver 1.0
    Resp: 50554
    Org ID : 204
    Request ID: 2865643
    All Parameters: USER_ID=1318:REPORT_TYPE=Report Only:P_SET_OF_BOOKS_ID=1:TRNS_STATUS=Posted:P_APPROVED=Not Approved:PERIOD=Sep-05
    Data Template Code: ILDVAPDN
    Data Template Application Short Name: CLE
    Debug Flag: Y
    {TRNS_STATUS=Posted, REPORT_TYPE=Report Only, PERIOD=Sep-05, USER_ID=1318, P_SET_OF_BOOKS_ID=1, P_APPROVED=Not Approved}
    Calling XDO Data Engine...
    java.lang.NullPointerException
         at oracle.apps.xdo.dataengine.DataTemplateParser.getObjectVlaue(DataTemplateParser.java:1424)
         at oracle.apps.xdo.dataengine.DataTemplateParser.replaceSubstituteVariables(DataTemplateParser.java:1226)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeData(XMLPGEN.java:398)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:281)
         at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:251)
         at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:192)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:222)
         at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:334)
         at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:236)
         at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:272)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:148)
    Start of log messages from FND_FILE
    Start of After parameter Report Trigger Execution..
    Gl Set of Books.....P
    Organization NameVision Operations
    Entering TRNS STATUS POSTED****** 648Posted
    end of the trns status..687 Posted
    currency_code 20USD
    P_PRECISION 272
    precision 332
    GL NAME 40Vision Operations (USA)
    Executing the procedure get format ..
    ExecutED the procedure get format and the Result..
    End of Before Report Execution..
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 2865643 on node AP615CMR at 28-SEP-2006 07:58:26.
    Post-processing of request 2865643 failed at 28-SEP-2006 07:58:38 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 28-SEP-2006 07:58:38
    Thanks & Regards
    Suresh Singh

    Generally the DBAs are aware of the OPP service log. They can tell you the cause of the problem.
    Anyway, how did you resolve the issue?

  • Bursting entire report as a single file by using Data Template

    Hi,
    I have created a report by using data template, which consists of 3 queries.
    Is it possible to burst the entire report in one single file? without splitting based on any criteria?
    Something like I want to use a constant value key so that report will split into one file ONLY.
    Please advice.
    Regards
    Muarli.

    You are right in saying that I dont want to use the burst option.. but the problem with FTP delivery, is that I can't pass the date parameter in the file name. Only fixed single file name is provided there..
    Work around for this is to use bursting option to pass corresponding parameter value in output file.
    I'm facing the problem that by using data template source, I can't burst in enterprise edition based on SQL statement.
    Getting the below error:
    oracle.apps.xdo.servlet.scheduler.ProcessingException: java.lang.NullPointerException
         at oracle.apps.xdo.servlet.scheduler.XDOJob.runBurstingReport(XDOJob.java:2116)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:358)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Caused by: java.lang.NullPointerException
         at oracle.apps.xdo.servlet.scheduler.XDOJob.runBurstingReport(XDOJob.java:2018)
         ... 3 more
    Bursting Definitions I used are as below.
         Bursting Node          /SCHEME_SETT_SUMMARY/LIST_G_VALUE_DATE/G_VALUE_DATE/ssc_code
         Delivery Node           /SCHEME_SETT_SUMMARY/LIST_G_VALUE_DATE/G_VALUE_DATE/ssc_code
    But the same report is running and I can schedule by using FTP delivery without bursting option successfully.
    Please assist in resolving this issue.
    Regards
    Murali.

  • Data template is invalid. Should be in XML-DATA-TEMPLATE format.

    Hi,
    I am trying to create & upload a Data Template for a Data Definition in XML Publisher. When I try to upload my data template, it shows me the error :-
    " The uploaded file PAFPURUP_TEMPLATE.xml is invalid. The file should be in XML-DATA-TEMPLATE format. "
    Can any please suggest me a possible resolution to this error? Below is my data template content :-
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <dataTemplate name="PAFPURUP_TEMPLATE" description="Data template for PAFPURUP" defaultPackage="PA_PAFPURUP_PKG" version="1.0">
    <parameters>
    <parameter name ="count" dataType="character" defaultValue="10"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT BUDGET_VERSION_ID, VERSION_NAME FROM PA_BUDGET_VERSIONS WHERE ROWNUM <= :count]]>
    </sqlStatement>
    </dataQuery>
    <dataTrigger name="beforeReport" source="PA_PAFPURUP_PKG.beforeReportTrigger"/>
    <dataStructure>
    <group name ="G_BUDGET_VERSIONS" source="Q1">
    <element name="Budget_Version_Id" value="budget_version_id"/>
    <element name="Version_Name" value="version_name"/>
    </group>
    </dataStructure>
    </dataTemplate>
    Many Thanks,
    Niranjan

    Hi Fred,
    Thanks for your response. The issue was actually with the xml format. I had missed '?' at the end of 1st line of the xml.
    Regards,
    Niranjan

  • How to create Data Template for creation of BI Pulisher Report

    Hi,
    I m having all the steps for creation of BI Pulisher report using Data Template, like 1st create Data Template, Add new Data Definition, upload Data Template, Create Concurrent Program and run the request, save o/p and create rtf layout, upload Template and again run Concurrent program to view output.
    All steps are working fine.. but my simple question is every time we need to write code for Data Template i.e. xml file ? is there is tool or something which will create this Data template for us using rdf? or is there any other way ?
    Please guide ..
    Regards,
    Priyanka.

    Hi;
    Please see below note which could be helpful for your issue:
    NOTE:367394.1 - About Oracle XML Publisher Release 5.6.2
    Also see:
    http://www.adivaconsulting.com/adiva-blog/item/5-datatemplate
    http://apps2fusion.com/at/51-ps/262-xml-publisher-and-data-template-sql-query-to-develop-bi-publisher-reports
    http://blogs.oracle.com/xmlpublisher/data_extraction/data_templates/
    Regard
    Helios

Maybe you are looking for