Data template and procedure output parameters

Hi all,
I have multiple sql statements and a MSSQL procedure witch I have to call when generating a report.
Therefore I use a data template.
The MSSQL procedure I call with EXEC. It returns the table that it sould return and everything is fine.
Except: the procedure also returns a punch of OUTPUT parameters and I don't know how to catch those parameters in my data template.
I have declared all these parameters in the BIP and also in the data template, but there are no values for them when I execute the report.
Here is a my current data template:
<dataTemplate name="NameOfTemplate">
<properties>
  <property name="include_parameters" value="true"/>
</properties>
<parameters>
     <parameter name="clientID" dataType="character"/>
     <parameter name="dept" dataType="number" /> <!--This is for MSSQL output-->
     <parameter name="forpay" dataType="number"/> <!--This is for MSSQL output-->
    <parameter name="name" dataType="character"/> <!--This is for MSSQL output-->
</parameters>
<dataQuery>
     <sqlStatement name="ARVE" dataSourceRef="connection1">
          <![CDATA[
          select
          from
               OAP.ACCOUNTS
          where
               ACCOUNTS.CLIENT_CODE = :clientID
          ]]>
     </sqlStatement>
     <sqlStatement name="ARVE_T" dataSourceRef="connection2" fixedSchema="false">
          <![CDATA[EXEC Dept_proc
               @ID = :clientID,
               @Volg =:dept,
               @Ettemaks =:forpay,
               @Nimi =:name]]>
    </sqlStatement>
  </dataQuery>
  <dataStructure>
     <group name="ARVE_TULEMUS" source="ARVE">
          <element name="ACCOUNT_SUM" value="SUMMA"/>
     </group>
     <group name="ARVE_TULEMUS" source="ARVE_T">
          <element name="ARVE_NUMBER" value="ARVENUMBER"/>
          <element name="ARVE_KUUPAEV" value="ARVEKUUPAEV"/>
          <element name="ARVE_LEPINGU_SALDO" value="VOLGUSUMMA"/>
     </group>
  </dataStructure>
</dataTemplate>Where @Volg, @Ettemaks and @Nimi are MSSQL procedure output parameters that I want to show in my report.
Can anyone give ma an example how to do this?

Hi all,
I have multiple sql statements and a MSSQL procedure witch I have to call when generating a report.
Therefore I use a data template.
The MSSQL procedure I call with EXEC. It returns the table that it sould return and everything is fine.
Except: the procedure also returns a punch of OUTPUT parameters and I don't know how to catch those parameters in my data template.
I have declared all these parameters in the BIP and also in the data template, but there are no values for them when I execute the report.
Here is a my current data template:
<dataTemplate name="NameOfTemplate">
<properties>
  <property name="include_parameters" value="true"/>
</properties>
<parameters>
     <parameter name="clientID" dataType="character"/>
     <parameter name="dept" dataType="number" /> <!--This is for MSSQL output-->
     <parameter name="forpay" dataType="number"/> <!--This is for MSSQL output-->
    <parameter name="name" dataType="character"/> <!--This is for MSSQL output-->
</parameters>
<dataQuery>
     <sqlStatement name="ARVE" dataSourceRef="connection1">
          <![CDATA[
          select
          from
               OAP.ACCOUNTS
          where
               ACCOUNTS.CLIENT_CODE = :clientID
          ]]>
     </sqlStatement>
     <sqlStatement name="ARVE_T" dataSourceRef="connection2" fixedSchema="false">
          <![CDATA[EXEC Dept_proc
               @ID = :clientID,
               @Volg =:dept,
               @Ettemaks =:forpay,
               @Nimi =:name]]>
    </sqlStatement>
  </dataQuery>
  <dataStructure>
     <group name="ARVE_TULEMUS" source="ARVE">
          <element name="ACCOUNT_SUM" value="SUMMA"/>
     </group>
     <group name="ARVE_TULEMUS" source="ARVE_T">
          <element name="ARVE_NUMBER" value="ARVENUMBER"/>
          <element name="ARVE_KUUPAEV" value="ARVEKUUPAEV"/>
          <element name="ARVE_LEPINGU_SALDO" value="VOLGUSUMMA"/>
     </group>
  </dataStructure>
</dataTemplate>Where @Volg, @Ettemaks and @Nimi are MSSQL procedure output parameters that I want to show in my report.
Can anyone give ma an example how to do this?

Similar Messages

  • BeforeReportTrigger , Data Template and Parameters

    Hi
    I'm new to XML publisher. Things has been going quite smoothly until I started to introduce BeforeReportTriggers and Parameters in my Data Template.
    When I go to view the report, I get
    "The report cannot be rendered because of an error, please contact the administrator"
    Unfortunately, I don't know if there is any log file for further information. I know the package works when I was debugging it.
    Please help.
    Below is my XML Data Template, the package header and body
    XML data template
    <dataTemplate name="SCH_A_dt1" description="schedule A database template1" defaultPackage="sch_a_dt1" dataSourceRef="nbdot_zsvm1">
    <parameters>
    <parameter name="p_COUNTY" dataType="character" defaultValue="GLOUCESTER"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <!-- insert sql statement here-->
    <![CDATA[select COUNTY, NETWORK_COMP,SECT_ID,CS_REF,RD_LOC,TYPE_MEANING,TOTAL_KM from sch_A_byCounty_det
    where &P_WHERE_CLAUSE]]>
    </sqlStatement>
    </dataQuery>
    <!-- BEFOREREPORT TRIGGER -->
    <dataTrigger name="beforeReportTrigger" source="sch_a_dt1.BEFOREREPORTTRIGGER(p_COUNTY)"/>
    <!-- DataStructure -->
    <dataStructure>
    <group name="G_COUNTY" source="Q1">
    <element name="COUNTY_NAME" value="COUNTY"/>
    <group name="G_NETWORK" source="Q1">
    <element name="NETWORK" value="NETWORK_COMP"/>
    <element name="SECT_ID" value="SECT_ID"/>
    <element name="ROAD_LOCATION" value="RD_LOC"/>
    <element name="TYPE_MEANING" value="TYPE_MEANING"/>
    <element name="LENGTH" value="TOTAL_KM"/>
    </group>
    </group>
    </dataStructure>
    </dataTemplate>
    Package header
    create or replace package sch_a_dt1
    as
    p_county varchar2(50);
    P_WHERE_CLAUSE VARCHAR2(100);
    procedure beforereportTrigger(p_county varchar2);
    end;
    Package body
    CREATE or replace PACKAGE BODY sch_a_dt1
    as
    procedure beforereportTrigger (p_county varchar2) is
    begin
    if (p_county) is null then
    p_where_clause := '1=1';
    elsif (p_county = '*') then
    p_where_clause := '1=1';
    else
    p_where_clause := 'COUNTY in (' ||p_county||')';
    end if;
    end;
    end;
    Thanks Zubran

    Thanks Daniel..
    You were right! The weird thing is that the XML user guide used a procedure as an example.
    Anyway. I wonder if you assist me further. Although I don't get an error, when I try to query on a paramter, I get no data return {ie. only the parameter is shown in result}. However, when I pass in '*' or null as per my function then this return the entire database.
    Please can you have a quick at the function and xml data template again.
    XML Data Template
    <dataTemplate name="SCH_A_dt1" description="schedule A database template1" defaultPackage="sch_a_dt1" dataSourceRef="nbdot_zsvm1">
    <parameters>
    <parameter name="p_COUNTY" dataType="character" defaultValue="GLOUCESTER"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <!-- insert sql statement here-->
    <![CDATA[select COUNTY, NETWORK_COMP,SECT_ID,CS_REF,RD_LOC,TYPE_MEANING,TOTAL_KM from sch_A_byCounty_det
    where &amp;P_WHERE_CLAUSE]]>
    </sqlStatement>
    </dataQuery>
    <!-- BEFOREREPORT TRIGGER -->
    <dataTrigger name="beforeReportTrigger" source="sch_a_dt1.beforerep(:p_COUNTY)"/>
    <!-- DataStructure -->
    <dataStructure>
    <group name="G_COUNTY" source="Q1">
    <element name="COUNTY_NAME" value="COUNTY"/>
    <group name="G_NETWORK" source="Q1">
    <element name="NETWORK" value="NETWORK_COMP"/>
    <element name="SECT_ID" value="SECT_ID"/>
    <element name="ROAD_LOCATION" value="RD_LOC"/>
    <element name="TYPE_MEANING" value="TYPE_MEANING"/>
    <element name="LENGTH" value="TOTAL_KM"/>
    </group>
    </group>
    </dataStructure>
    </dataTemplate>
    Procedure body
    CREATE or replace PACKAGE BODY sch_a_dt1
    as
    function beforerep (p_county in varchar2) return boolean is
    begin
    if (p_county) is null then
    p_where_clause := '1=1';
    return true;
    elsif (p_county = '*') then
    p_where_clause := '1=1';
    return true;
    else
    p_where_clause := 'COUNTY in (' ||p_county||')';
    return true;
    end if;
    exception
    when others then
    return false;
    end ;
    end ;
    Header
    create or replace package sch_a_dt1
    as
    p_county varchar2(50);
    P_WHERE_CLAUSE VARCHAR2(100);
    function beforerep (p_county in varchar2) return boolean;
    end;
    /

  • Service Template and iSCSI Boot Parameters

    Hello,
    I use updating service templates to ensure all service profiles are the same and it works great. We have recently setup a Nimble storage array and for iSCSI boot you have to put the target of of the boot LUN in the iSCSI boot parameters. However as each profile will have to boot from a different volume. This causes an issue as I cant change a service profile that is bound to a service template and i need the profiles to have differnt boot volumes.
    Am I missing something here.
    Thanks

    The service profile requires two different IQNs one for the initiator/server and one for the target/storage_array. What I’m saying is that each initiator needs to have a different IQN but all of them can use the same target IQN to communicate to the storage.
    If you are using an updating template to update all of the service profiles, any change you make there will be propagated to all of the service profiles that were created from this template, which means that you can only make changes to the template and not directly to the service profiles unless you unbind them from this template. 
    The main thing you need to understand is that if you use the same target IQN it doesn’t mean that all of your server are going to try to boot to the same LUN as long as you group their IQN (initiator) to a dedicated LUN on the storage array.
    Let me kwow what you think
    iSCSI
    http://en.wikipedia.org/wiki/ISCSI

  • Functions needed in Data Template for XML output

    Hi ,
    Are there any oracle functions like abs() available
    in data_template to be used as follows
    group name="listItem" source="Q2">
    <element name="amount" value="abs(amount)"/>
    <element name="serialNumber" value="TXN_SERIAL_NO"/>
    I want the absolute value of the amount .
    OR
    Can I HIDE the xml Element like
    <element name="amount" value="amount"/> (i want to hide this tag in output?)
    Please do not suggest to do the same in the SQL query as I am using the SQL query to do something else and resolve another issue.
    rdgs
    xyz

    You can do this abs in Template.
    use xdoxslt:abs or abs from xsl.
    if you want the data in the xml to habe absolute value , then write pl/sql package to this .
    <element name="amount" value="yourpcakage.yourabs(amount)"/>
    or do it in sql query, which you dont want to.

  • Data Modeler and procedures/functions

    The export to DDL function generates DDL with a summary listing the number of objects created. "Procedures" is one of the objects for which it lists a total, but I don't anyplace to actual create or manage procedures. Where are the procedures?

    These are physical model properties. So you should expand the relational model and then open the physical model (right-click and select Open) you choose the database type and then can navigate down to the physical properties.
    Sue

  • Checking checkboxes from XML data (Designer and LiveCycle Output)

    Hello!
    I have over 3 thousand XML files containing information to be converted into PDF files. Among the info I have fields like:
              <REASON1>X</REASON1>
      <REASON2></REASON2>
    So on the XDP fields this translates as checkboxes.
    So I tried this script to mark the correspondent checkboxes in the resulting PDF:
    if (xfa.resolveNode("REASON1").rawValue == "X") {
              this.rawValue = 1;
    Well, it doesn't work.
    The checkbox is identified as REASON1 in the Binding tab, everything looks correct to me.
    Please, what am I doing wrong?
    Thank you for any hints!
    Marcos

    Hi Niall,
    Would you believe if I told you I had already tried this and it hadn't worked?
    After your suggestion, I tried again. And guess, it worked.
    I had probably missed something ...
    Thank you!!!
    Marcos

  • Can I use an OLE DB Command Task to call a parameterized stored procedure, perform some data editing and pass variables back to the SSIS for handling?

    I am using a Data Flow and an OLE DB Source to read my staged 3rd party external data. I need to do various Lookups to try and determine if I can find the external person in our database...by SSN...By Name and DOB...etc...
    Now I need to do some more data verification based on the Lookup that is successful. Can I do those data edits against our SQL server application database by utilizing an OLE DB Command? Using a Stored Procedure or can I sue straight SQL to perform my edit
    against every staging row by using a parameter driven query? I'm thinking a Stored Procedure is the way to go here since I have multiple edits against the database. Can I pass back the result of those edits via a variable and then continue my SSIS Data Flow
    by analyzing the result of my Stored Procedure? And how would I do that.
    I am new to the SSIS game here so please be kind and as explicit as possible. If you know of any good web sites that walk through how to perform SQL server database edits against external data in SSIS or even a YouTube, please let me know.
    Thanks!

    Thanks for that...but can I do multiple edits in my Stored Procedure Vaibhav and pass back something that I can then utilize in my SSIS? For example...
    One and Only one Member Span...so I'd be doing a SELECT COUNT(*) based on my match criteria or handle the count accordingly in my Stored Procedure and passing something back via the OLE DB Command and handling it appropriately in SSIS
    Are there "Diabetes" claims...again probably by analyzing a SELECT COUNT(*)
    Am I expecting too much from the SSIS...should I be doing all of this in a Stored Procedure? I was hoping to use the SSIS GUI for everything but maybe that's just not possible. Rather use the Stored Procedure to analyze my stged data, edit accordingly, do
    data stores accordingly...especially the data anomalies...and then use the SSIS to control navigation
    Your thoughts........
    Could you maybe clarify the difference between an OLE DB Command on the Data Flow and the Execute SQL Task on the Control Flow...
    You can get return values from oledb comand if you want to pipeline.
    see this link for more details
    http://josef-richberg.squarespace.com/journal/2011/6/30/ssis-oledb-command-and-procedure-output-params.html
    The procedure should have an output parameter defined for that
    I belive if you've flexibility of using stored procedure you may be better off doing this in execute sql task in control flow. Calling sp in data flow will cause it to execute sp once for each row in dataset whereas in controlflow it will go for set based
    processing
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • 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

  • EBS: Email XML publisher output, from After Report Trigger in Data Template

    Here is what I'm trying to do:
    -- In EBS (11.5.10 CU2), I'm using XML publisher (5.6.2) data template and layout template to generate Output files (PDF, EXCEL etc)
    --In the Data Template's AfterReport Trigger, I'm using the Concurrent Request Id to locate the Output file name and trying to Email that output file.
    Problem:
    -- When the AfterReport trigger code is executed, the code is NOT seeing the output file and hence the file is NOT emailed.
    Observations/Questions:
    -- From what I observe, the Output Post Processor ( that generates the Excel / PDF files) is running AFTER the code in AfterReport trigger... and hence the AfterReport trigger is Not quite seeing / able to access the output file.
    So, the sequence of execution seems to be:
    -- Before Report Trigger
    -- Data Query (SQL statement)
    -- After Report Trigger
    -- Output Post Processor
    Because the AfterReport Trigger is running before the Output Post Processor, it is Not able to see the output file. Is that a True statement?
    If Yes, how else can the DataTemplate access the Output file?
    If No, what could cause the AfterReport trigger to not see the output file?

    Because the AfterReport Trigger is running before the Output Post Processor, it is Not able to see the output file. Is that a True statement?
    I believe so, as the OPP works on the output of the Report after the Report has completed execution.
    You could use the same approach as we do for bursting the report to different users. Write a Java Concurrent program based on "oracle.apps.xdo.oa.cp. XMLPReportBurst" with delivery channel Email to send the email output. You would need to add code to launch the Concurrent child request in your AfterReport Trigger:
    function AfterReport return boolean is
    jreq_id number;
    begin
    srw.message (100, 'DEBUG: AfterReport_Trigger +');
    jreq_id:= FND_REQUEST.SUBMIT_REQUEST ('XDO','XDOBURST','','',FALSE,:P_CONC_REQUEST_ID,'Y',chr(0),
    If (jreq_id=0)
    then
    srw.message (100,'Request id is zero');
    end if;

  • How to call a (catalog) stored procedure directly in a xsodata file with in/output parameters

    I am new to XS but i managed to enable a table through xsodata:
    service namespace "sap.hana.democontent.epm" { 
      "AA465342"."TMP_HENK" as "TMP_HENK"; 
    But now i am looking for code that can call a stored procedure that has 2 input- and 3 output parameters.... who can help me out with this?

    Hi Vivek, thanks for the quick response!
    I already found that blog, but it does not completely answer my question. i am struggling to get my content procedure working. call the R (catalog) stored procedure:
    the code
    /********* Begin Procedure Script ************/
    BEGIN
        call "AA465342"."MO_PP_SENTIMENT"(SP_IN,SP_OUT) with overview;
    END;
    /********* End Procedure Script ************/
    where it goes wrong:
    : Only table variable is allowed in input parameter in a nested call
    I have defined SP_IN and SP_OUT....
    Can someone give me a clue what i have to change?

  • How to retrieve data from plsql table in BI publisher Data template

    Hi All,
    I have created a data template for XML publisher report. In data template i m getting data from plsql table. for that i have created one package with pipelined function. I am able to run that sql from sql developer .But if i run the concurrent program then i got error like "java.sql.SQLSyntaxErrorException: ORA-00904: "XXXXX": invalid identifier".
    I have used the same parameters in Data template and concurrent program....
    please clarify me what needs to be done....
    thanks in advance....
    Regards,
    Doss

    Hi Alex ,
    i am using pipelined function and get the data from cursor and load it into plsql table (nested table). and i use the below in my data template to fetch the data:
    <sqlStatement name="Q1">
    <![CDATA[select * from  table(PO_SPEND_RPT_PKG.generate_report(P_ORG_ID,P_SOB_ID,P_ORG_NAME,P_PERIOD_NAME,P_CLOSE_STATUS,P_E_PCARD_NEED,P_REPORT_TYPE))]]>
    </sqlStatement>
    if i run the above in sql developer i can get the result....from apps if i run i got the error "java.sql.SQLSyntaxErrorException: ORA-00904: "P_ORG_ID": invalid identifier"
    Edited by: kalidoss on Sep 14, 2012 4:32 AM

  • Data Template Creating

    Hi Guys ,
    I have created a data template and it worls fine but when i attach a RTF template in oralce apps to it it errors out .. am i missing something ...?
    What are the steps i need to follow in order to register a Data Template with just Data Template Definition i used the follwoing xml file .
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <dataTemplate name="EmpData" description="Employee Details" Version="1.0">
    <parameters>
    <parameter name="p_DeptNo" dataType="character" />
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[
    SELECT d.DEPTNO,d.DNAME,d.LOC,EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,
    nvl(COMM,0)
    FROM scott.dept d, scott.emp e
    WHERE d.deptno=e.deptno
    AND d.deptno = nvl(:p_DeptNo,d.deptno)
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_DEPT" source="Q1">
    <element name="DEPT_NUMBER" value="DEPTNO" />
    <element name="DEPT_NAME" value="DNAME" />
    <element name="DEPTSAL" value="G_EMP.SALARY" function="SUM()" />
    <element name="LOCATION" value="LOC" />
    <group name="G_EMP" source="Q1">
    <element name="EMPLOYEE_NUMBER" value="EMPNO" />
    <element name="NAME" value="ENAME" />
    <element name="JOB" value="JOB" />
    <element name="MANAGER" value="MGR" />
    <element name="HIREDATE" value="HIREDATE" />
    <element name="SALARY" value="SAL" />
    </group>
    </group>
    </dataStructure>
    </dataTemplate>
    Thanks
    Tom .....

    This is the error i get
    oracle.apps.xdo.XDOException: Error creating lock file
    at oracle.apps.xdo.oa.util.FontCacheManager.getFontFromDB(FontCacheManager.java:320)
    at oracle.apps.xdo.oa.util.FontCacheManager.getFontFilePath(FontCacheManager.java:198)
    at oracle.apps.xdo.oa.util.FontHelper.createFontProperties(FontHelper.java:431)
    at oracle.apps.xdo.oa.util.ConfigHelper.getFontProperties(ConfigHelper.java:166)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5768)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
    at oracle.apps.xdo.oa.template.server.TemplatesAMImpl.processTemplate(TemplatesAMImpl.java:2130)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
    Thanks
    Tom...

  • 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

  • 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.

  • Using Variable in the Data Template

    Hi All,
    I am on BIP 10.1.3.4.1 and DB is SQL Server. My Data Model is a Data Template wherein I have written multiple SQL Statements. I want to use a variable in my Data Template, assign it a value and use that variable to limit one of the SQL statements in the where clause like
    declare @cnt int;
    set @cnt = select count(asset_id) from asset
    How do I use in the data template. I tried using it in a separate SQL statement but it throws me an error when i run the report like
    "Need to declare the scalar variable '@cnt'
    Can we have a variable section like parameter section we have in the data template to declare the parameters?
    Any help would be highly appreciated.
    Thanks,
    Ronny

    Sorry for the shot follow up, can anybody please reply on this?

Maybe you are looking for