DataType character u00F1

Hello,
i,ve a interface RFC to JDBC. I need created in datatype a field with name 'año', identical to field of database, however, it is not allowed, I get the following message:
"Name contains invalid characters: ñ Only a(A)-z(Z), 0-9, and "_" are permitted"
what I saw in the forum referring to special characters in the payload, not to define a datatype
Is it possible take in 'ñ' in the name of the field's datatype, if so, how is this done?
thanks very much

Hi,
Go through this blog which explains about receiver JDBC Adapter use and the approach.
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
Only difference is, this blog explains about sync JDBC receiver and you have modify as per ur requirement.
For document formats of receiver JDBC adapter http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm
I hope this will solve ur query.
Thanks
Hamja
Edited by: Hamja Hussain on Apr 23, 2009 4:19 PM

Similar Messages

  • How to use special charecters in Data Type ?

    Hi Experts
    i want to create the data base structure for receiver side. in that data type we need to use special characters like (_ _ -- and # ) . is that possible that we can use the special characters in the data type creation .
    Thank you
    G.Praveen Kumar

    Hi,
    read reply given byAkhila K 
    Re: DataType character u00F1
    and this
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]
    Regards,
    Manisha
    Edited by: Manisha Dahatonde on May 15, 2009 2:30 PM

  • Getting while attaching .rtf file in data template

    Hi All,
    When i am attaching a .RTF file to a data template , i am getting the following erro :
    The referring page may have come from a previous session. Please select Close Window to proceed
    i tried by login again but same error coming every time, please help me on thsi.
    Thanks

    <?xml version = "1.0" encoding="UTF-8" ?>
    <dataTemplate name="XMLTEST" description = "testing the" Version = "1.0">
    <properties>
    <property name="xml_tag_case" value="upper" />
    <property name="include_parameters" value="true"/>
    <property name="include_null_Element" value="true"/>
    </properties>
    <parameters>
    <parameter name="P1" dataType = "CHARACTER"></parameter>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[
    SELECT CASH_RECEIPT_ID , AMOUNT , SET_OF_BOOKS_ID
    FROM AR_CASH_RECEIPTS_ALL
    WHERE STATUS = :P1
    ]]>
    </sqlStatement>
    </dataQuery>
    <datastructure>
    <group name = "G1" SOURCE = "Q1" groupFilter="">
    <element name="CASH_RECEIPT" value ="CASH_RECEIPT"/>
    <element name="AMOUNT" value="AMOUNT"/>
    <element name="SET_OF_BOOKS_ID" value="SET_OF_BOOKS_ID"/>
    </group>
    </datastructure>
    </dataTemplate>
    i have modified the date datatype. im still seeing the same output. how do i change the element to be derived value? can you help me with the syntax.
    Thanks!

  • Error while creating DataTemplate based Report in BI publisher

    hi,
    i am trying to create dataTemplate in BI Publisher when i view the report in BI Publisher its gives a error Attribute "valueSet" required
    anyone please help me
    <dataTemplate name="SrBysrtype" description="ServiceRequestBySrtype" defaultPackage="sr" dataSourceRef="demo">
         <parameters>
              <parameter name="owner" dataType="number" defaultValue="57"/>
              <parameter name="srtype" dataType="character" defaultValue="Customer Call"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q1">
                   <![CDATA[
    SELECT incident.Incident_Id IncidentId,
    incident.incident_date IncidentDate,
    incident.Incident_Number IncidentNumber,
    incident.Caller_Type CallerType,
    incident.Status_Flag Status,
    incident.Summary Summary,
    severity.name IncidentSeverity,
    urgency.name IncidentUrgency,
    itypes.name IncidentType
    FROM cs_incidents_all_b incident,
    cs_incident_severities_b severity,
    cs_incident_urgencies_b urgency,
    cs_incident_types_b itypes,
    cs_incident_statuses_b status
    WHERE severity.incident_severity_id= incident.incident_severity_id
    AND urgency.incident_urgency_id =incident.incident_urgency_id
    AND itypes.incident_type_id = incident.incident_type_id
    AND status.incident_status_id = incident.incident_status_id
    AND incident.incident_owner_id=nvl(:owner,incident.incident_owner_id)
    AND itypes.name=nvl(:srtype,itypes.name) ]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_SR" datatype="varchar2" source="Q1">
                   <element name="IncidentId" value="incident.Incident_ID"/>
                   <element name="IncidentDate" value="incident.incident_date"/>
                   <element name="IncidentNumber" value="incident.Incident_Number"/>
                   <element name="CallerType" value="incident.Caller_Type"/>
                   <element name="StatusFlag" value="incident.Status_Flag"/>
                   <element name="Summary" value=" incident.Summary"/>
                   <element name="IncidentSeverity" value="severity.name"/>
                   <element name="IncidentUrgency" value="urgency.name"/>
                   <element name="IncidentType" value="itypes.name"/>
              </group>
         </dataStructure>
    </dataTemplate>

    Hi,
    check in your Report definition if there's a parameter defined as Type MENU but without a corresponding LOV.
    Regards
    Rainer

  • Logical operator in datatemplate query

    Hi,
    I'm having trouble writing my queries in a datatemplate. The problem is, when I have to use the logical operators <>. More specific, my sql query has a less than condition, but when I try to save the datatemplate with my query, I get an error message saying that the datatemplate is invalid.
    It's obvious that the characters &lt; and &gt; will result in non well formed xml, but is there any solution to this?
    Thx in advance
    Kim
    Edited by: mulder82 on Mar 30, 2009 1:33 AM

    Hi,
    Can you post your data template please?
    < and > don't pose a problem for the xml structure because they should be inside a "CDATA" element.
    Like this:
    <dataTemplate name="dataTemp">
         <parameters>
              <parameter name="P_PARAM" dataType="character" defaultValue=""/>
              <parameter name="P_PYS_ID" dataType="character" defaultValue=""/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Query1">
                   <![CDATA[
    SELECT name
    FROM dept
    WHERE dept_no > 10
    ]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_Dept" source="Query1">
                   <element name="dep_name" value="name"/>
    </group>
    </dataStructure>
    </dataTemplate>

  • Not able to generate output in CSV(EXCEL) format

    Hi,
    XML Publisher report is giving me an error when the Preview Format is 'EXCEL'. When I keep the Preview Format as 'PDF', the concurrent program is running successfully and the PDF output is getting generated. But for EXCEL outputs, I am getting the following error :
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    The operation completed successfully. Error processing resource 'http://erpap01:8010/OA_CGI/FNDWRR.exe?temp_id=1...
    <td valign="top" class="c7"><p class="c8"><span class="c9">13 July 2009  13:15:57 PM</span>...
    I have using the following Data Template for Data Definition
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="EMPDT" description="Employee Details" version="1.0">
    <parameters>
    <parameter dataType="character" name="p_DeptNo"> </parameter>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT EMPNO
                       ,ENAME
                       ,JOB
                       ,MGR
                       ,HIREDATE
                       ,DEPTNO
                       ,SAL
                       ,COMM
                 FROM scott.Emp
              WHERE deptno = NVL(:p_DeptNo,deptno)
         ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_EMP" dataType="varchar2" source="Q1">
    <element name="EMPNO" value="EMPNO"/>
    <element name="ENAME" value="ENAME"/>
    <element name="JOB" value="JOB"/>
    <element name="MGR" value="MGR"/>
    <element name="HIREDATE" value="HIREDATE"/>
    <element name="DEPTNO" value="DEPTNO"/>
    <element name="SAL" value="SAL"/>
    <element name="COMM" value="COMM"/>
    </group>
    </dataStructure>
    </dataTemplate>
    When I click on Diagnostic - View XML, copy the XML file and generate report using Word plugin, I am able to generate output in PDF and in EXCEL. But for some reason, when I try to run the XML Publisher report using concurrent program, I am unable to generate output in EXCEL and I am getting the error as listed above.
    When I click on View Template - Preview, keeping the Preview format as Excel, I get the following error :
    Exception Detail
    java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
    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.GeneratedMethodAccessor173.invoke(Unknown Source)
    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)
    at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
    at oracle.apps.xdo.oa.template.webui.TemplateGeneralCO.previewTemplate(TemplateGeneralCO.java:741)
    at oracle.apps.xdo.oa.template.webui.TemplateGeneralCO.processRequest(TemplateGeneralCO.java:158)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
    at oa_html._OA._jspService(_OA.java:85)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
    at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
    at oa_html._OA._jspService(_OA.java:95)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
    at org.apache.jserv.JServConnection.run(JServConnection.java:294)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: oracle.xdo.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:324)
    at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:319)
    at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
    at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:266)
    Any inputs would be appreciated
    Regards
    David

    May be it is browser problem? use another browser like Firefox
    Edited by: ranalawa on Jul 14, 2009 2:21 PM

  • Display blob in bi publisher

    I have a report that I"m trying to display an image at runtime. I create the data template, then the word template.
    In the word template I have tried:
    1. Tried adding the code to the a text form field (form fileld text help)
    2. Straight to the word rtf template:
    <fo:instream-foreign-object content type="image/gif" height="3 in" width="4 in">
    <xsl:value-of select="IMAGE_DATA"/> (also used select="IMAGEDATA"
    </fo:instram-foreign-object>
    3. also placed the text in #2 above in a property sheet in the word template called Bi PUblisher Properties (Code)
    None of these have worked.
    the MIME type is image/gif. My data template looks like this:
    <dataTemplate name="Image" description="Image" dataSourceRef="DEV">
         <parameters>
              <parameter name="p_image" dataType="character" defaultValue="2393"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q1">
                   <![CDATA[select PENCMMD.PENCMMD_IMAGE_DATA IMAGE_DATA
    from      MYIMAGE.PENCMMD PENCMMD
    where       PENCMMD.PENCMMD_CMMD_ID =2393]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_Proposal" source="Q1">
                   <element name="ImageData" value="image_data"/>
              </group>
         </dataStructure>
    </dataTemplate>

    I'm also looking for the same requirement to display a signature(BLOB) field on an existing Data template report but getting the error - '
    ORA-00932: inconsistent datatypes: expected - got BLOB' when selected the signature field in my select statement. Please guide me into the right direction. Thanks.

  • 'expression is of wrong type' - but which and where..?

    hello.
    Hopefully this will be clear as day to someone.. Please could someone tell me why I'm getting the following error message..
    [061010_042222995][][EXCEPTION] SQLException encounter while executing data trigger....
    java.sql.SQLException: ORA-06550: line 4, column 20:
    PLS-00382: expression is of wrong type
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignoreddata template where trigger is called..
      <?xml version="1.0" encoding="utf-8" ?>
    - <dataTemplate name="UofS_OutstandngExpenses_Report" defaultPackage="SUBIXCLT" dataSourceRef="FINDEV" version="1.0">
    - <properties>
      <property name="xml_tag_case" value="upper" />
      <property name="include_parameters" value="true" />
      <property name="debug_mode" value="on" />
      </properties>
    - <parameters>
      <parameter name="p_claimant" dataType="character" defaultValue="" />
      <parameter name="p_expense_date_from" dataType="date" defaultValue="" />
      <parameter name="p_expense_date_to" dataType="date" defaultValue="" />
      <parameter name="p_raisedby" dataType="character" defaultValue="" />
      <parameter name="p_status" dataType="character" defaultValue="" />
      <parameter name="p_ordered_by" dataType="varchar2" defaultValue="" />
      </parameters>
    - <dataQuery>
    - <sqlStatement name="Q1">
    - <![CDATA[
    SELECT DISTINCT
    erh.invoice_num,
    pap.full_name EMP_CLAIMING,
    DECODE(NVL(erh.expense_status_code, 'Not yet Submitted (NULL)'), 'CANCELLED', 'CANCELLED',
         'EMPAPPR', 'Pending Individuals Approval',      'ERROR', 'Pending System Administrator Action',
         'HOLD_PENDING_RECEIPTS     ', 'Hold Pending Receipts', 'INPROGRESS', 'In Progress', 'INVOICED', 'Ready for Payment',
         'MGRAPPR', 'Pending Payables Approval', 'MGRPAYAPPR', 'Ready for Invoicing', 'PAID', 'Paid',
         'PARPAID', 'Partially Paid',     'PAYAPPR', 'Payables Approved',     'PENDMGR', 'Pending Manager Approval',
         'PEND_HOLDS_CLEARANCE', 'Pending Payment Verification',     'REJECTED', 'Rejected',     'RESOLUTN',     'Pending Your Resolution',
         'RETURNED',     'Returned',     'SAVED',     'Saved',     'SUBMITTED',     'Submitted',     'UNUSED',     'UNUSED',
         'WITHDRAWN','Withdrawn',     'Not yet Submitted (NULL)') "EXPENSE_STATUS" ,
    NVL(TO_CHAR(erh.report_submitted_date,'dd-MON-yyyy'),'NULL') SUBMIT_DATE,
    NVL(TO_CHAR(erh.expense_last_status_date,'dd-MON-yyyy'),'NULL') LAST_UPDATE,
    erh.override_approver_name ER_Approver,
    fu.description EXP_ADMIN,
    erh.total,
    erh.description 
    FROM
    AP_EXPENSE_REPORT_HEADERS_all erh,
    per_all_people_f pap, fnd_user fu
    WHERE erh.employee_id = pap.person_id
    AND fu.user_id = erh.created_by
    AND NVL(erh.expense_status_code, 'Not yet Submitted') NOT IN  ('MGRAPPR', 'INVOICED', 'PAID', 'PARPAID')
    AND pap.full_name = NVL(:p_claimant, pap.full_name)
    AND TRUNC(erh.report_submitted_date) BETWEEN NVL(:p_expense_date_from, '01-JAN-1999') AND NVL(:p_expense_date_to,'31-DEC-2299')
    AND fu.description = NVL(:p_raisedby,fu.description)
    AND erh.expense_status_code = NVL(:p_status,erh.expense_status_code) &L_ORDERED_BY
      ]]>
      </sqlStatement>
      </dataQuery>
      <dataTrigger name="beforeReport" source="SUBIXCLT.beforeReportTrigger" />
    - <dataStructure>
    - <group name="G_XP_CLM_TRACKNG" source="Q1">
      <element name="INVOICE_NUM" value="INVOICE_NUM" />
      <element name="EMP_CLAIMING" value="EMP_CLAIMING" />
      <element name="EXPENSE_STATUS" value="EXPENSE_STATUS" />
      <element name="SUBMIT_DATE" value="SUBMIT_DATE" />
      <element name="LAST_UPDATE" value="LAST_UPDATE" />
      </group>
      </dataStructure>
      </dataTemplate>and the package spec & body..
    --THE SPEC...
    CREATE OR REPLACE PACKAGE Subixclt IS
    FUNCTION beforeReportTrigger RETURN VARCHAR2;
    p_order_by VARCHAR2(50);
    l_ordered_by VARCHAR2(350);
    p_claimant  VARCHAR2(80);
    expense_date_from DATE;
    expense_date_to DATE;
    p_raisedby   VARCHAR2(80);
    p_status   VARCHAR2(80);
    p_ordered_by   VARCHAR2(80);
    --RETURN VARCHAR2;
    END;
    --THE BODY...
    REATE OR REPLACE PACKAGE BODY Subixclt IS
    FUNCTION BeforeReportTrigger RETURN VARCHAR2 IS
    BEGIN
    Fnd_File.PUT_LINE(Fnd_File.LOG,'L_ORDERED_by'||L_ORDERED_BY);
    DECLARE
    L_ORDERED_BY VARCHAR2(50);
    P_ORDERED_BY  VARCHAR2(50);
    P_RAISEDBY VARCHAR2(50);
    P_STATUS VARCHAR2(50);
    P_CLAIMANT VARCHAR2(100);
    P_EXPENSE_DATE_FROM DATE;
    --P_EXPENSE_DATE_FROM  VARCHAR2(50);
    --P_EXPENSE_DATE_TO  VARCHAR2(50);
    P_EXPENSE_DATE_TO DATE;
    BEGIN
    IF (P_ORDERED_BY='Expense Report Number') THEN
         L_ORDERED_BY :='order by 1 asc;';
      ELSIF (P_ORDERED_BY='Person Claiming') THEN
         L_ORDERED_BY :='order by 2 asc;';
      ELSIF (P_ORDERED_BY='Submit Date') THEN
      L_ORDERED_BY :='order by 4 asc;';
      END IF;
    RETURN(L_ORDERED_BY);
    --RETURN NULL;
    END;
    END;
    END;Many thanks for looking..
    D

    Thanks for the suggestion. I initially didnt have the RETURN TRUE after every IF statement and have since removed the 'WHEN OTHERS' section but I'm still getting the same error message. If its to be believed, doesn't it sound like its not finding any of the 3 possible parameter entries available? This can't be so, I've checked the ConC Program parameter name is correct, and the value set linked to it only has available the 3 options where I make the choice..
    Body now reads:
    CREATE OR REPLACE PACKAGE BODY Subixclt
    AS
    FUNCTION BEFOREREP (P_ORDERED_BY IN VARCHAR2)RETURN BOOLEAN IS
    BEGIN
    --FND_FILE.PUT_LINE(FND_FILE.LOG,'L_ORDERED_by'||L_ORDERED_BY);
    DECLARE
    L_ORDERED_BY VARCHAR2(50);
    --P_RAISEDBY VARCHAR2(50);
    --P_STATUS VARCHAR2(50);
    --P_CLAIMANT VARCHAR2(100);
    --P_EXPENSE_DATE_FROM DATE;
    --P_EXPENSE_DATE_TO DATE;
    BEGIN
    IF (P_ORDERED_BY='Expense Report Number') THEN
         L_ORDERED_BY :='order by 1 asc;';
      ELSIF (P_ORDERED_BY='Person Claiming') THEN
         L_ORDERED_BY :='order by 2 asc;';
      ELSIF (P_ORDERED_BY='Submit Date') THEN
      L_ORDERED_BY :='order by 4 asc;';
      RETURN TRUE;
      END IF;
    -- EXCEPTION WHEN OTHERS THEN RETURN FALSE;
    --RETURN(L_ORDERED_BY);
    END;
    END;
    END;error log reads:
    XDO Data Engine Version No: 5.6.3
    Resp: 20707
    Org ID : 102
    Request ID: 2484872
    All Parameters: p_raisedby=SUSAN HOLLIDAY:p_status=:p_claimant=:p_expense_date_from=:p_expense_date_to=:P_ORDERED_BY=Person Claiming
    Data Template Code: SUBIXCLT
    Data Template Application Short Name: PO
    Debug Flag: N
    {p_claimant=, p_expense_date_to=, p_status=, p_raisedby=SUSAN HOLLIDAY, p_expense_date_from=, P_ORDERED_BY=Person Claiming}
    Calling XDO Data Engine...
    [061110_114425280][][STATEMENT] Start process Data
    [061110_114425282][][STATEMENT] Process Data ...
    [061110_114425284][][STATEMENT] Executing data triggers...
    [061110_114425284][][STATEMENT] BEGIN
    SUBIXCLT.p_claimant := :p_claimant ;
    SUBIXCLT.p_expense_date_from := :p_expense_date_from ;
    SUBIXCLT.p_expense_date_to := :p_expense_date_to ;
    SUBIXCLT.p_raisedby := :p_raisedby ;
    SUBIXCLT.p_status := :p_status ;
    SUBIXCLT.p_ordered_by := :p_ordered_by ;
    :XDO_OUT_PARAMETER := 1;
    END;
    [061110_114425287][][STATEMENT] 1: :
    [061110_114425287][][STATEMENT] 2:null :
    [061110_114425287][][STATEMENT] 3:null :
    [061110_114425288][][STATEMENT] 4:SUSAN HOLLIDAY :
    [061110_114425288][][STATEMENT] 5: :
    [061110_114425288][][STATEMENT] 6:null :
    [061110_114425291][][STATEMENT] Executing data triggers...
    [061110_114425292][][STATEMENT] Declare
    l_flag Boolean;
    BEGIN
    l_flag := SUBIXCLT.beforerep(:p_ordered_by) ;
    if (l_flag) then
    :XDO_OUT_PARAMETER := 1;
    end if;
    end;
    [061110_114425293][][STATEMENT] 1:null :
    [061110_114425302][][EXCEPTION] SQLException encounter while executing data trigger....
    java.sql.SQLException: ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "APPS.SUBIXCLT", line 27
    ORA-06512: at line 4Many thanks for staying with this..
    S

  • In XML Publisher ....unable to load .RTF

    Hi ,
    I have just installed MS windows XML publisher as BI publisher download link not working.
    I started the xml server ,
    went to the url through firefox
    created/added a new data source through admin option
    crated a simple data model as
    select ename,job from emp
    created a new layout in .rtf format.
    when i upload the .rtf it uploads the same and then I have it .....
    but after saving the .rtf i can't see it in the layout as uploaded ...
    DO I have to specify some directory in the XML server where all .rtf will be saved ???
    this is my first installation ....hence no clue...
    I am using WINDOWS XP ?.....can someonw suggest please ?
    ta
    s

    i am using xml publisher for general report writing NOT FOR EBS...
    following is my data template which works fine and generates xml data
    <dataTemplate name="A_SIMPLE_REPORT">
    <properties>
    <property name="xml_tag_case" value="upper"/>
    </properties>
    <parameters>
    <parameter name="P_PARM" dataType="character"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="QUERYNAME">
    <![CDATA[
    select empno EMPNO
    , ename ENAME
    , job JOB
    from
    scott.emp
    where 'XYZ' = nvl(:P_PARM, 'XYZ')
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_UPPERGROUP" dataType="varchar2" source="QUERYNAME">
    <element name="EMPNO" dataType="varchar2" value="EMPNO"/>
    <element name="ENAME" dataType="varchar2" value="ENAME"/>
    <element name="JOB" dataType="varchar2" value="JOB"/>
    </group>
    </dataStructure>
    </dataTemplate>
    Now I opened a ms word document :
    1)added a table with 3 columns and 2 rows
    2) added the below column headings with their subsequent tags in row 1 and 2 respectively for the table ?
    EMPNO     ENAME     JOB
    <?for-each:G_UPPERGROUP?> <?ENAME?> <?JOB?>
    <?EMPNO?> <?end for-each?>
    is my code correct ?
    ta
    s

  • Attachments in XML Publisher

    Our attachments are on a web server.
    We have an XML Publisher report for batches. Some of the batches have attachments that defined as "Web Page".
    We want to print the content of the attachments (MS Word, MS Excel or PDF files), together with our report.
    Is there any way to print an external file with XMLP report?
    Thanks.

    i am using xml publisher for general report writing NOT FOR EBS...
    following is my data template which works fine and generates xml data
    <dataTemplate name="A_SIMPLE_REPORT">
    <properties>
    <property name="xml_tag_case" value="upper"/>
    </properties>
    <parameters>
    <parameter name="P_PARM" dataType="character"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="QUERYNAME">
    <![CDATA[
    select empno EMPNO
    , ename ENAME
    , job JOB
    from
    scott.emp
    where 'XYZ' = nvl(:P_PARM, 'XYZ')
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_UPPERGROUP" dataType="varchar2" source="QUERYNAME">
    <element name="EMPNO" dataType="varchar2" value="EMPNO"/>
    <element name="ENAME" dataType="varchar2" value="ENAME"/>
    <element name="JOB" dataType="varchar2" value="JOB"/>
    </group>
    </dataStructure>
    </dataTemplate>
    Now I opened a ms word document :
    1)added a table with 3 columns and 2 rows
    2) added the below column headings with their subsequent tags in row 1 and 2 respectively for the table ?
    EMPNO     ENAME     JOB
    <?for-each:G_UPPERGROUP?> <?ENAME?> <?JOB?>
    <?EMPNO?> <?end for-each?>
    is my code correct ?
    ta
    s

  • Issue in BI Publisher when migrating oracle report RDF to BI Publisher

    Hi, I am migrating Oracle RDF report to BI Publisher while migrating this report I am facing problem in viewing data as per my report requirement
    I want my department Name should be my HEADER and all projects of department should display under it.
    for that according to me I should get XML data like this
    <dept1>
    <project1></project1>
    <project2></project2>
    <project3></project3>
    </dept1>
    for some nodes I am getting this expected result but for many node it is giving me result like
    <dept2>
    <project1></project1>
    </dept2>
    <dept2>
    <project2></project2>
    </dept2>
    because of this i could not able to see data in required format for some department.
    may be Order by is not working in Q_Expenditure
    Here is my data template
    <dataTemplate dataSourceRef="PTTrng" name="XXPA4049093f" defaultPackage="XXPA4049093f">
    <properties>
    <property name="xml_tag_case" value="upper"/>
    </properties>
    <parameters>
    <parameter name="P_PROJECT" dataType="character" defaultValue="%"/>
    <parameter name="P_PROJECT_ROLLUP" dataType="character"/>
    <parameter name="P_PROJECT_ROLLUP_YEAR" dataType="character"/>
    <parameter name="P_ORDER_BY" dataType="character" defaultValue="1"/>
    <parameter name="P_REMAIN_BALANCE" dataType="number" defaultValue="-9999999999"/>
    <parameter name="P_FUND" dataType="character" defaultValue="%"/>
    </parameters>
    <lexicals>
    </lexicals>
    <dataQuery>
    <sqlStatement name="Q_Expenditure">
    select TRIM(a.NAME)NAME ,upper(a.id2) ID2,a."Project",a.start_date,a.completion_date,a.organization_id,a.origbud, a.budget,a.commitment,a.visa,a.labor,a.remaining_funds,a.board_rollup,a.description,a.class_code,
    a.class_category,a.fund,
    nvl(b.po_oblig_prior_yr,0) po_oblig_prior_yr2,
    nvl(c.ap_prior_yr_oblig,0) ap_prior_yr_oblig2,
    ( nvl(a.remaining_funds,0) + nvl(b.po_oblig_prior_yr,0) + nvl(c.ap_prior_yr_oblig,0) ) Remaining_funds_Order,
    XXPA4049093f.cf_dept_pct_obligformula(:CS_dept_total_costs, :CS_dept_bud) CF_dept_pct_oblig,
    XXPA4049093f.cf_dept_pct_unobligformula(:CS_dept_remain_funds, :CS_dept_bud) CF_dept_pct_unoblig,
    XXPA4049093f.cf_remain_laborformula(:CS_labor_budget, apps.a.LABOR) CF_remain_labor,
    XXPA4049093f.cf_nonlabor_budgetformula(apps.a.BUDGET, :CS_labor_budget) CF_nonlabor_budget,
    XXPA4049093f.cf_nonlabor_costsformula(apps.a.VISA, apps.a.COMMITMENT, nvl ( b.po_oblig_prior_yr , 0 ), nvl ( c.ap_prior_yr_oblig , 0 )) CF_nonlabor_costs,
    XXPA4049093f.cf_remain_nonlaborformula(XXPA4049093f.cf_nonlabor_budgetformula(apps.a.BUDGET, :CS_labor_budget) ,XXPA4049093f.cf_nonlabor_costsformula(apps.a.VISA, apps.a.COMMITMENT, nvl ( b.po_oblig_prior_yr , 0 ), nvl ( c.ap_prior_yr_oblig , 0 )) ) CF_remain_nonlabor,
    XXPA4049093f.cf_total_costsformula(apps.a.LABOR,XXPA4049093f.cf_nonlabor_costsformula(apps.a.VISA, apps.a.COMMITMENT, nvl ( b.po_oblig_prior_yr , 0 ), nvl ( c.ap_prior_yr_oblig , 0 )) ) CF_total_costs,
    XXPA4049093f.cf_remain_fundsformula(apps.a.BUDGET,XXPA4049093f.cf_total_costsformula(apps.a.LABOR,XXPA4049093f.cf_nonlabor_costsformula(apps.a.VISA, apps.a.COMMITMENT, nvl ( b.po_oblig_prior_yr , 0 ), nvl ( c.ap_prior_yr_oblig , 0 )) ) ) CF_remain_funds,
    XXPA4049093f.cf_proj_pct_obligformula(XXPA4049093f.cf_total_costsformula(apps.a.LABOR,XXPA4049093f.cf_nonlabor_costsformula(apps.a.VISA, apps.a.COMMITMENT, nvl ( b.po_oblig_prior_yr , 0 ), nvl ( c.ap_prior_yr_oblig , 0 )) ) , apps.a.BUDGET) CF_proj_pct_oblig,
    XXPA4049093f.cf_proj_pct_unobligformula(XXPA4049093f.cf_remain_fundsformula(apps.a.BUDGET,XXPA4049093f.cf_total_costsformula(apps.a.LABOR,XXPA4049093f.cf_nonlabor_costsformula(apps.a.VISA, apps.a.COMMITMENT, nvl ( b.po_oblig_prior_yr , 0 ), nvl ( c.ap_prior_yr_oblig , 0 )) ) ) , apps.a.BUDGET) CF_proj_pct_unoblig
    from apps.xxpa_project_status_fund_cy_2 a, xxpa_prior_yr_oblig2_cy b, xxpa_ap_prior_yr_oblig2_cy c
    where
    a.class_category = :P_Project_Rollup
    and a.class_code = :P_Project_Rollup_Year
    and a.id2 like upper(:P_Project)
    and a.remaining_funds >= :P_remain_balance
    and a.id2 = b.id2
    and a.id2 = c.id2
    and a.class_code = b.class_code
    and a.class_code = c.class_code
    and a.fund like :P_Fund
    order by 1
    </sqlStatement><sqlStatement name="Q_1">
    select upper(f.class_code) ID2, sum(d.labor_budget) Labor_budget
    from apps.xxpa_labor_budget_v2006 d,
    pa.pa_project_classes e,
    pa.pa_class_codes f,
    ( select *
    from pa_project_classes
    where class_category = 'Fiscal Year'
    and substr(class_code,-4,4) =
    (select ( segment5 )
    from FINANCIALS_SYSTEM_PARAMS_ALL a, gl_code_combinations b
    where set_of_books_id = 2
    and a.accts_pay_code_combination_id = b.code_combination_id)
    ) ppc
    where d.project_id = e.project_id
    and e.class_category = f.class_category
    and e.class_code = f.class_code
    and e.class_category = 'Project Rollups'
    and d.project_id = ppc.project_id
    and d.project_id in (select project_id
    from pa.pa_project_classes a, xxpa_project_rollups_org b
    where a.class_category = 'Project Rollups'
    and a.class_code = b.class_code
    and b.org_count <= 1)
    and upper ( id2 )like upper(:P_Project)
    group by upper(f.class_code)
    </sqlStatement>
    <link name="Q_LINK" parentQuery="Q_Expenditure" parentColumn="ID2" childQuery="Q_1" childColumn="ID2" condition="="/>
    </dataQuery>
    <dataTrigger name="afterParameterFormTrigger" source="XXPA4049093f.afterpform"/>
    <dataTrigger name="beforeReportTrigger" source="XXPA4049093f.beforereport"/>
    <dataStructure>
    <group name="G_NAME1" dataType="varchar2" source="Q_Expenditure">
    <element name="NAME" dataType="varchar2" value="NAME"/>
    <element name="CS_dept_orig_bud" function="sum" dataType="number" value="G_segment1.ORIGBUD"/>
    <element name="CS_dept_bud" function="sum" dataType="number" value="G_segment1.BUDGET"/>
    <element name="CS_dept_labor_bud" function="sum" dataType="number" value="G_segment1.CS_labor_budget"/>
    <element name="CS_dept_labor" function="sum" dataType="number" value="G_segment1.LABOR"/>
    <element name="CS_dept_labor_remain" function="sum" dataType="number" value="G_segment1.CF_remain_labor"/>
    <element name="CS_dept_nonlabor_bud" function="sum" dataType="number" value="G_segment1.CF_nonlabor_budget"/>
    <element name="CS_dept_nonlabor_costs" function="sum" dataType="number" value="G_segment1.CF_nonlabor_costs"/>
    <element name="CS_dept_nonlabor_remain" function="sum" dataType="number" value="G_segment1.CF_remain_nonlabor"/>
    <element name="CS_dept_total_costs" function="sum" dataType="number" value="G_segment1.CF_total_costs"/>
    <element name="CS_dept_remain_funds" function="sum" dataType="number" value="G_segment1.CF_remain_funds"/>
    <element name="CF_dept_pct_oblig" dataType="number" value="CF_dept_pct_oblig"/>
    <element name="CF_dept_pct_unoblig" dataType="number" value="CF_dept_pct_unoblig"/>
    <group name="G_segment1" dataType="varchar2" source="Q_Expenditure">
    <element name="FUND" dataType="varchar2" value="FUND"/>
    <element name="po_oblig_prior_yr2" dataType="number" value="PO_OBLIG_PRIOR_YR2"/>
    <element name="ap_prior_yr_oblig2" dataType="number" value="AP_PRIOR_YR_OBLIG2"/>
    <element name="Remaining_funds_Order" dataType="number" value="REMAINING_FUNDS_ORDER"/>
    <element name="Project" dataType="varchar2" value="Project"/>
    <element name="ORIGBUD" dataType="number" value="ORIGBUD"/>
    <element name="BUDGET" dataType="number" value="BUDGET"/>
    <element name="COMMITMENT" dataType="number" value="COMMITMENT"/>
    <element name="LABOR" dataType="number" value="LABOR"/>
    <element name="CLASS_CODE" dataType="varchar2" value="CLASS_CODE"/>
    <element name="CLASS_CATEGORY" dataType="varchar2" value="CLASS_CATEGORY"/>
    <element name="REMAINING_FUNDS" dataType="number" value="REMAINING_FUNDS"/>
    <element name="ID2" dataType="varchar2" value="ID2"/>
    <element name="START_DATE" dataType="date" value="START_DATE"/>
    <element name="COMPLETION_DATE" dataType="date" value="COMPLETION_DATE"/>
    <element name="ORGANIZATION_ID" dataType="number" value="ORGANIZATION_ID"/>
    <element name="VISA" dataType="number" value="VISA"/>
    <element name="BOARD_ROLLUP" dataType="varchar2" value="BOARD_ROLLUP"/>
    <element name="DESCRIPTION" dataType="varchar2" value="DESCRIPTION"/>
    <element name="CS_labor_budget" function="sum" dataType="number" value="G_1.LABOR_BUDGET"/>
    <element name="CF_remain_labor" dataType="number" value="CF_remain_labor"/>
    <element name="CF_nonlabor_budget" dataType="number" value="CF_nonlabor_budget"/>
    <element name="CF_nonlabor_costs" dataType="number" value="CF_nonlabor_costs"/>
    <element name="CF_remain_nonlabor" dataType="number" value="CF_remain_nonlabor"/>
    <element name="CF_total_costs" dataType="number" value="CF_total_costs"/>
    <element name="CF_remain_funds" dataType="number" value="CF_remain_funds"/>
    <element name="CF_proj_pct_oblig" dataType="number" value="CF_proj_pct_oblig"/>
    <element name="CF_proj_pct_unoblig" dataType="number" value="CF_proj_pct_unoblig"/>
    <group name="G_1" dataType="varchar2" source="Q_1">
    <element name="LABOR_BUDGET" dataType="number" value="LABOR_BUDGET"/>
    <element name="ID2" dataType="varchar2" value="ID2"/>
    </group>
    </group>
    </group>
    <element name="CS_ORIG_BUDGET" function="sum" dataType="number" value="G_segment1.ORIGBUD"/>
    <element name="CS_APPROVED_BUDGET" function="sum" dataType="number" value="G_segment1.BUDGET"/>
    <element name="CS_LABOR_BUDGET_TOTAL" function="sum" dataType="number" value="G_segment1.CS_labor_budget"/>
    <element name="CS_LABOR_COSTS" function="sum" dataType="number" value="G_segment1.LABOR"/>
    <element name="CS_REMAIN_LABOR" function="sum" dataType="number" value="G_segment1.CF_remain_labor"/>
    <element name="CS_NONLABOR_BUDGET" function="sum" dataType="number" value="G_segment1.CF_nonlabor_budget"/>
    <element name="CS_NONLABOR_COSTS" function="sum" dataType="number" value="G_segment1.CF_nonlabor_costs"/>
    <element name="CS_REMAINING_NONLABOR" function="sum" dataType="number" value="G_segment1.CF_remain_nonlabor"/>
    <element name="CF_pct_oblig" dataType="number" value="XXPA4049093f.cf_pct_obligformula(:CS_TOTAL_COSTS, :CS_APPROVED_BUDGET)"/>
    <element name="CS_TOTAL_COSTS" function="sum" dataType="number" value="G_segment1.CF_total_costs"/>
    <element name="CS_REMAIN_FUNDS" function="sum" dataType="number" value="G_segment1.CF_remain_funds"/>
    <element name="CF_PCT_UNOBLIG" dataType="number" value="XXPA4049093f.cf_pct_unobligformula(:CS_REMAIN_FUNDS, :CS_APPROVED_BUDGET)"/>
    <element name="rp_order_by" dataType="varchar2" value="XXPA4049093f.rp_order_by_p"/>
    </dataStructure>
    </dataTemplate>

    I had to go to my data template and move my groups around.
    Copy Data Template into something like Wordpad, so you can see the hierarchy and cut and paste your groups. Watch your indentions.

  • Is it possible to use an XML Data Template to create a report in APEX?

    Hi,
    I have created an XML Data Template in BI Publisher passing one parameter and running two queries, then created an RTF Document Template to present the data.
    I can create a nice report in BI Publisher using the two elements. I have used RTF Document Templates to publish reports in APEX but the data comes from a Report region running a single query.
    I would like to run a report based in this kind of XML Data Template, in order to use several children queries related to a parent query. Is it possible to do it in APEX, or you have to use BI Publisher?
    Francisco
    ===========================
    Below is a simple data template definition:
    <dataTemplate name="cotizacion_template" description="Prueba de data template para cotizaciones" dataSourceRef="dbxprts">
         <parameters>
              <parameter name="p_id_cotizacion" dataType="character" defaultValue="1009" include_in_output="true"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="header_query">
                   <![CDATA[select id_cotizacion, fecha_cotizacion, id_clipro from f_cotizaciones where id_cotizacion = :p_id_cotizacion]]>
              </sqlStatement>
              <sqlStatement name="detail_query">
                   <![CDATA[select id_cotizacion as id_cot_child, id_detalle_cotizacion, partida, cantidad, id_producto from f_detalle_cotizaciones where id_cotizacion = :id_cotizacion]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="F_COTIZACIONES" source="header_query">
                   <element name="ID_COTIZACION" value="ID_COTIZACION"/>
                   <element name="ID_CLIPRO" value="ID_CLIPRO"/>
                   <element name="SUMA_CANTIDAD" value="F_DETALLE_COTIZACIONES.CANTIDAD" function="SUM()"/>
                   <group name="F_DETALLE_COTIZACIONES" source="detail_query">
                        <element name="PARTIDA" value="PARTIDA"/>
                        <element name="CANTIDAD" value="CANTIDAD"/>
                        <element name="ID_PRODUCTO" value="ID_PRODUCTO"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>

    Hi,
    I have the similar question. I used data templates in BI Publisher but now I want to use the same data template in Apex to print some reports.
    I tried to some examples but these were only using report queries. I also tried with the Web Service but this didn't work for me either maybe because I didn't
    used it in the right way. When I used the WS I received the binary of the report so the WS worked it was just the how and where to use it that didn't work for me.
    Now this older entry is BUMPED maybe we find a solution for our problem this way.
    regards,
    Steven

  • Display image in reports6i

    Hi all:
    I store signature as images in my database , this column is LONG ROW,
    when i design the report i use a formula column and i set the follwing attributes:
    column type=formula
    datatype=character
    width=100
    read from file=yes
    file format=image
    pl/sql formula:
    function testFormula return Char is
    lsign long row;
    begin
    select signature into lsignature from TABLE_NAME;
    return lsign;
    end;
    but when the report is generated it display nothing!!!! what is the solution?
    thanks alot.

    I am not sure about LONG RAW, but this certainly works for BLOB columns.
    Add the column in your query.
    Create a field in your layout and select the image column as the source.
    In the item property palette choose Image for the file format (if this is not already the case).

  • Using user parameter for

    Hello,
    I have created a report using an xml pds. I am using a servlet for the xml data stream source. Everything works great with the url to the servlet hard-coded between the <xml></xml> tags (ex. <xml>http://10.3.35.119:9004/ssapp/servlet/ScheduleDataServlet</xml>) but when I try using a user parameter between the tags (so I will be able to dynamically change the url to this servlet) it bombs. Please see my source code and error message below. Any help would be greatly appreciated, I've been stuck on this for days! Thanks!
    <rw:report id="recoveryCenterScheduleReport" parameters="server=myreportserver&userid=ssstage/ssstage@DEVL&p_xmlDataURL=http://10.3.35.119:9004/ssapp/servlet/ScheduleDataServlet">
    <rw:objects id="objects">
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <report name="XMLscheduleReport" DTDVersion="9.0.2.0.0">
    <xmlSettings xmlTag="XMLSCHEDULEREPORT" xmlPrologType="text">
    <![CDATA[<?xml version="1.0" encoding="&Encoding"?>]]>
    </xmlSettings>
    <data>
    <userParameter name="XML_HTTPS" datatype="character"
    pluginClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
    width="255" defaultWidth="0" defaultHeight="0" display="no"/>
    <userParameter name="p_xmlDataURL" datatype="character" width="100"
    precision="10" defaultWidth="0" defaultHeight="0"/>
    <dataSource name="QP_1">
    <plugin
    factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
    majorVersionNumber="1" minorVersionNumber="2"
    signOnParameter="XML_HTTPS">
    <![CDATA[<xmlpds DTDVersion=" 1.0">
    <dtd>null</dtd>
    <schema>file:///C:/Practic Workspace/Practice/WEB-INF/xsd/scheduleReport.xsd</schema>
    <XSQLschema>null</XSQLschema>
    <XSQLWithDTD>false</XSQLWithDTD>
    <type>false</type>
    <xmlWritten>true</xmlWritten>
    <validate>true</validate>
    <xml>&<[b]p_xmlDataURL></xml>
    <xsl>null</xsl>
    javax.servlet.jsp.JspException: rwlib-1: REP-0002: Unable to retrieve a string from the report builder message file.
    REP-0069: Internal error
    XMLPDS-63004:Generic error while parsing the URL stream name instead of <.
    REP-4111: Fail to create pluggable data source 'QP_1'
         at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
         at jsp.reports._schedule._XMLscheduleReport._jspService(_XMLscheduleReport.java:87)
    ....

    Never mind, I discovered the problem. I wasn't using the necessary xml escape characters for the user parameter embedded in the xml.

  • BI Publisher Report for Archived OIM tables

    Hi
    We perfomed Request archival operation in our OIM DB using http://docs.oracle.com/cd/E29505_01/doc.1111/e14308/archival_utilities.htm. Now ARCH* tables are created and it has relevant details.
    Now our requirment is to create a new report to read data from this archived tables using BI publisher. We are looking something similar to OOTB Attestation Request and Approval Reports -> Request Details in BI.
    We created a new report called "Request Details from Archive tables" similar to the OOTB one in BI front end. Also modifed data template by replacing "request*" tables to "arch_request*" as below. When we try to gernerate report now it is not working as expected.
    Do we need to change anything else ? Please advise
    Modified data template for reference
    <dataTemplate name="ArchRequestDetails" description="Each group that contains the logged in user as its direct user. All groups that are administered by the above set of groups are visible to the logged in user.">
         <parameters>
              <parameter name="xdo_user_name" dataType="character"/>
              <parameter name="p_varchar_ReqFN" dataType="character"/>
              <parameter name="p_varchar_ReqLN" dataType="character"/>
              <parameter name="p_varchar_ReqUID" dataType="character"/>
              <parameter name="p_varchar_ReqID" dataType="character"/>
              <parameter name="p_varchar_ReqPID" dataType="character"/>
              <parameter name="p_varchar_ReqStatu" dataType="character"/>
              <parameter name="p_varchar_ReqTyp" dataType="character"/>
              <parameter name="p_ReqDtFrom" dataType="date"/>
              <parameter name="p_ReqDtTo" dataType="date"/>
              <parameter name="p_varchar_BenFN" dataType="character"/>
              <parameter name="p_varchar_BenLN" dataType="character"/>
              <parameter name="p_varchar_BenUID" dataType="character"/>
         </parameters>
         <dataquery>
              <sqlstatement name="sql_L1_AllRequests">
                   <![CDATA[ SELECT ReqID as RequestID, 
            decode(ReqAction, 'Create Entity', 'Self Registration', 'Add', 'Provision Resource', 'Disable',   'Disable Resource',   'Enable',   'Enable Resource',   'Revoke',   'Revoke Resource',   'Modify Entity',   'Modify Profile') as RequestType,   
            ReqUID as RequesterUserID,
            ReqDate as RequestDate, 
            CurStatus as RequestStatus,
            null as ParentRequestID
       FROM (select distinct
              req.req_key as ReqID,
              req.req_obj_action as ReqAction, 
              usr.usr_login as ReqUID,
              req.req_create as ReqDate,
              ost.ost_status as CurStatus
         from req left outer join rqu on req.req_key = rqu.req_key,
              ost,
              usr,
              act,
              usr usr2
        where rqu.usr_key = usr2.usr_key
          and req.ost_key = ost.ost_key
          and req.req_createby = usr.usr_key
          and usr2.act_key = act.act_key
          and usr2.act_key in (select aad.act_key
                from aad,usg,usr
                where usg.usr_key = usr.usr_key
                  and aad.ugp_key = usg.ugp_key
                  and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
                  and (nvl(:p_varchar_ReqStatu,' ')=' ' or upper(ost.ost_status) like upper(:p_varchar_ReqStatu))
                  and (nvl(:p_varchar_ReqID,' ')=' ' or req.req_key like (:p_varchar_ReqID))
                  and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
            union
            select
              req.req_key as ReqID,
              req.req_obj_action as ReqAction, 
              usr.usr_login as ReqUID,
              req.req_create as ReqDate,
              ost.ost_status as CurStatus
            from
              req,
              ost,
              usr
            where
              req.ost_key = ost.ost_key
              and req.req_createby = usr.usr_key
              and req.req_obj_action = 'Create Entity'
              and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
              and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
              and ost.ost_status != 'Request Complete'
            union
            select req.req_key as ReqID,
              req.req_obj_action as ReqAction, 
              usr.usr_login as ReqUID,
              req.req_create as ReqDate,
              ost.ost_status as CurStatus
         from req,
              ost,
              usr,
              usr usr2,
              act
        where req.ost_key = ost.ost_key
              and req.req_createby = usr.usr_key
              and req.req_obj_action = 'Create Entity'
              and usr2.usr_login =(select upper(rqd.rqd_attr_value) from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.User ID')
              and usr2.act_key = act.act_key
              and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
              and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
              and usr2.act_key in (select aad.act_key from aad,usg,usr
          where usg.usr_key = usr.usr_key
            and aad.ugp_key = usg.ugp_key and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
            and ost.ost_status = 'Request Complete')
          UNION ALL
          SELECT distinct request.request_key as RequestID, 
            request.request_model_name as RequestType,
            usr1.usr_login as RequesterUserID,
            request.request_creation_date as RequestDate,
            request.request_status as RequestStatus,
            request.request_parent_key as ParentRequestID
       FROM usr usr1 JOIN request req1 ON usr1.usr_key = req1.requester_key,
            request,
            (select distinct req3.request_key rk,
              usr2.usr_first_name bfn,
              usr2.usr_last_name bln,
              usr2.usr_login buid
            from arch_request req3,
              arch_request_beneficiary reqb1,
              usr usr2
            where req3.request_key = reqb1.request_key
              and reqb1.beneficiary_key = usr2.usr_key
            UNION
            select distinct req3.request_key rk,
              usr2.usr_first_name bfn,
              usr2.usr_last_name bln,
              usr2.usr_login buid
            from arch_request req3,
              arch_request_entities re1,
              usr usr2
            where req3.request_key = re1.request_key
              and re1.entity_key = usr2.usr_key)user1
          WHERE
            req1.request_key = request.request_key
            and (NVL(:p_varchar_ReqFN, ' ') = ' ' or UPPER(usr1.usr_first_name) LIKE UPPER(:p_varchar_ReqFN))
            and (NVL(:p_varchar_ReqLN, ' ') = ' ' or UPPER(usr1.usr_last_name) LIKE UPPER(:p_varchar_ReqLN))
            and (NVL(:p_varchar_ReqUID, ' ') = ' ' or UPPER(usr1.usr_login) LIKE UPPER(:p_varchar_ReqUID))
            and (NVL(:p_varchar_ReqID, ' ') = ' ' or UPPER(request.request_key) LIKE UPPER(:p_varchar_ReqID))
            and (NVL(:p_varchar_ReqPID, ' ') = ' ' or UPPER(request.request_parent_key) LIKE UPPER(:p_varchar_ReqPID))
            and (NVL(:p_varchar_ReqStatu, ' ') = ' ' or UPPER(request.request_status) LIKE UPPER(:p_varchar_ReqStatu))
            and (NVL(:p_varchar_ReqTyp, ' ') = ' ' or UPPER(request.request_model_name) LIKE UPPER(:p_varchar_ReqTyp))
            and request.request_creation_date between :p_ReqDtFrom and :p_ReqDtTo
            and (NVL(:p_varchar_BenFN, ' ') = ' ' or (UPPER(user1.bfn) LIKE UPPER(:p_varchar_BenFN) and request.request_key = user1.rk))
            and (NVL(:p_varchar_BenLN, ' ') = ' ' or (UPPER(user1.bln) LIKE UPPER(:p_varchar_BenLN) and request.request_key = user1.rk))
            and (NVL(:p_varchar_BenUID, ' ') = ' ' or (UPPER(user1.buid) LIKE UPPER(:p_varchar_BenUID) and request.request_key = user1.rk))
    ORDER BY RequestID ]]>
              </sqlstatement>
              <sqlstatement name="sql_L2_Approver_BPEL" dataSourceRef="BPEL JDBC">
    SELECT distinct wfproductivity_view.username as ApproverUserID
    FROM wfproductivity_view
    WHERE identificationkey = :RequestID
    </sqlstatement>
              <sqlstatement name="sql_L2_Approver">
    SELECT distinct usr.usr_login as ApproverUserID
    FROM rqh join usr on rqh.rqh_createby = usr.usr_key
    WHERE rqh.req_key = :RequestID
    And rqh.rqh_status = 'Approved'
    </sqlstatement>
              <sqlstatement name="sql_L1_Beneficiaries">
                   <![CDATA[  SELECT distinct
      FirstName as BenFName, 
      LastName as BenLName,
      userid as BenUserID,
      usr_emp_type as BenEmpType, 
      UsrStatus as BenUserStatus,
      OrgName as BenOrg
    FROM
      (select distinct
        usr2.usr_login AS userid,    
        usr2.usr_last_name AS LastName,
        usr2.usr_first_name AS FirstName,    
        usr2.usr_emp_type AS usr_emp_type,
        usr2.usr_status AS UsrStatus,    
        act.act_name AS OrgName
      from req left outer join rqu on req.req_key = rqu.req_key,
        ost,
        usr,
        act,
        usr usr2
      where req.req_key = :RequestID
        and rqu.usr_key = usr2.usr_key
        and req.ost_key = ost.ost_key
        and req.req_createby = usr.usr_key
        and usr2.act_key = act.act_key
        and usr2.act_key in
          (select aad.act_key
          from aad,usg,usr
          where
            usg.usr_key = usr.usr_key
            and aad.ugp_key = usg.ugp_key
            and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
        and (nvl(:p_varchar_ReqStatu,' ')=' ' or upper(ost.ost_status) like upper(:p_varchar_ReqStatu))
        and (nvl(:p_varchar_ReqID,' ')=' ' or req.req_key like (:p_varchar_ReqID))
        and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
        and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
        and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
        and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
      union
      select
        (select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.User ID') AS userid,
        (select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.Last Name') AS LastName,
        (select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.First Name') AS FirstName,
        (select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.Xellerate Type') AS usr_emp_type,
        null AS UsrStatus,    
        null AS OrgName
      from req,
        ost,
        usr
      where req.req_key = :RequestID
        and req.ost_key = ost.ost_key
        and req.req_createby = usr.usr_key
        and req.req_obj_action = 'Create Entity'
        and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
        and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
        and ost.ost_status != 'Request Complete'
      union
      select usr2.usr_login AS userid,
        usr2.usr_last_name AS LastName,
        usr2.usr_first_name AS FirstName,
        usr2.usr_emp_type AS usr_emp_type,
        usr2.usr_status AS UsrStatus,
        act.act_name AS OrgName
      from req,
        ost,
        usr,
        usr usr2,
        act
      where req.req_key = :RequestID
        and req.ost_key = ost.ost_key
        and req.req_createby = usr.usr_key
        and req.req_obj_action = 'Create Entity'
        and usr2.usr_login =(select upper(rqd.rqd_attr_value) from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.User ID')
        and usr2.act_key = act.act_key
        and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
        and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
        and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
        and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
        and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
        and usr2.act_key in
          (select aad.act_key
          from aad,usg,usr
          where
            usg.usr_key = usr.usr_key
            and aad.ugp_key = usg.ugp_key and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
        and ost.ost_status = 'Request Complete')
          UNION ALL
          SELECT distinct user1.bfn as BenFName, 
            user1.bln as BenLName,
            user1.buid as BenUserID,
            user1.bet as BenEmpType, 
            user1.bus as BenUserStatus,
            user1.bo as BenOrg
          FROM
            (select distinct req3.request_key rk,
              usr2.usr_first_name bfn,
              usr2.usr_last_name bln,
              usr2.usr_login buid,
              usr2.usr_emp_type bet,
              usr2.usr_status bus,
              act.act_name bo
            from arch_request req3,
              arch_request_beneficiary reqb1,
              usr usr2,
              act
            where req3.request_key = reqb1.request_key
              and reqb1.beneficiary_key = usr2.usr_key
              and usr2.act_key = act. act_key
              and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
              and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
              and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
            UNION
            select distinct req3.request_key rk,
              usr2.usr_first_name bfn,
              usr2.usr_last_name bln,
              usr2.usr_login buid,
              usr2.usr_emp_type bet,
              usr2.usr_status bus,
              act.act_name bo
            from arch_request req3,
              arch_request_entities re1,
              usr usr2,
              act
            where req3.request_key = re1.request_key
              and re1.entity_key = usr2.usr_key
              and usr2.act_key = act. act_key
              and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
              and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
              and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
            )user1
          WHERE
            user1.rk = :RequestID                 
    ]]>
              </sqlstatement>
              <sqlstatement name="sql_L1_RequestDetails">
    SELECT distinct
    null as ReqDetailsName,
    obj_name as ReqDetailsValue
    FROM
    req,
    rqo,
    obj
    WHERE
    req.req_key = :RequestID
    and req.req_key = rqo.req_key
    and obj.obj_key = rqo.obj_key
    UNION ALL
    SELECT distinct reqdet.detname as ReqDetailsName,
    reqdet.detval as ReqDetailsValue
    FROM
    (select req1.request_key rk,
    rbe1.rbe_entity_name detval,
    rbe1.rbe_entity_type detname
    from arch_request_beneficiary_entities rbe1,
    request req1
    where rbe1.rbe_request_key = req1.request_key
    union
    select req1.request_key rk,
    red1.entity_field_value detval,
    red1.entity_field_name detname
    from arch_request_entity_data red1,
    arch_request_entities re1,
    request req1
    where red1.request_entity_key = re1.request_entity_key
    and re1.request_key = req1.request_key
    and red1.entity_field_name != 'Organization'
    and red1.entity_field_name != 'User Manager'
    union
    select req1.request_key rk,
    act.act_name detval,
    red1.entity_field_name detname
    from arch_request_entity_data red1,
    arch_request_entities re1,
    request req1,
    act
    where red1.request_entity_key = re1.request_entity_key
    and re1.request_key = req1.request_key
    and red1.entity_field_value = act.act_key
    and red1.entity_field_name = 'Organization'
    union
    select req1.request_key rk,
    usr3.usr_login detval,
    red1.entity_field_name detname
    from arch_request_entity_data red1,
    arch_request_entities re1,
    request req1,
    usr usr3
    where red1.request_entity_key = re1.request_entity_key
    and re1.request_key = req1.request_key
    and red1.entity_field_value = usr3.usr_key
    and red1.entity_field_name = 'User Manager') reqdet
    WHERE
    reqdet.rk = :RequestID
    </sqlstatement>
         </dataquery>
         <dataStructure>
              <group name="AllRequests" source="sql_L1_AllRequests">
                   <element name="RequestID" value="RequestID"/>
                   <element name="RequestType" value="RequestType"/>
                   <element name="RequesterUserID" value="RequesterUserID"/>
                   <element name="RequestDate" value="RequestDate"/>
                   <group name="grp_AllApprovers" source="sql_L2_Approver_BPEL">
                        <element name="ApproverUserID" value="ApproverUserID"/>
                   </group>
                   <group name="grp_AllApprovers" source="sql_L2_Approver">
                        <element name="ApproverUserID" value="ApproverUserID"/>
                   </group>
                   <element name="RequestStatus" value="RequestStatus"/>
                   <element name="ParentRequestID" value="ParentRequestID"/>
                   <group name="Beneficiaries" source="sql_L1_Beneficiaries">
                        <element name="BenFName" value="BenFName"/>
                        <element name="BenLName" value="BenLName"/>
                        <element name="BenUserID" value="BenUserID"/>
                        <element name="BenEmpType" value="BenEmpType"/>
                        <element name="BenUserStatus" value="BenUserStatus"/>
                        <element name="BenOrg" value="BenOrg"/>
                   </group>
                   <group name="RequestDetails" source="sql_L1_RequestDetails">
                        <element name="ReqDetailsName" value="ReqDetailsName"/>
                        <element name="ReqDetailsValue" value="ReqDetailsValue"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>
    Thanks
    KK

    any help please ? if you need any more information to know more about the issue, please do not hesitate to ask.
    Thank you.

Maybe you are looking for