Xml publisher report problem

I have a xml publisher report which list job names. After submitting concurrent program, I am getting below error
A semi colon character was expected. Error processing resource
some of the Jobs have special character '&'. below is code
CREATE OR REPLACE PACKAGE BODY XML_RPT AS
    FUNCTION XML_TAG (p_tag IN VARCHAR2, p_data IN VARCHAR2) RETURN VARCHAR2 IS
    l_ret_str VARCHAR2(5000);
    BEGIN
        l_ret_str := '<'||p_tag||'>'||p_data||'</'||p_tag||'>';
        RETURN l_ret_str;
    END XML_TAG;
     PROCEDURE JOBS(errbuf          OUT  VARCHAR2,
                     retcode         OUT  NUMBER) IS
    CURSOR inv_Cur  IS
        select name          
        from per_jobs pv;        
     xmldata            varchar2(1000);
     l_sqlstr           varchar2(1000);
     l_seqnum           varchar2(3);
     l_job_name      varchar2(100);
    BEGIN
      xmldata := '<?xml version="1.0" encoding="UTF-8"?>';     
      xmldata :=xmldata|| '<JOB>';
      xmldata := xmldata||' <LIST_JOB>';
      fnd_file.put_line(fnd_file.output,xmldata);    
      FOR rpt_rec IN inv_Cur LOOP
          xmldata := '<JOB_REC>';
          l_job_name := replace(rpt_rec.JOB_NAME,'&','&amp');         
          xmldata := xmldata || XXMCG_XML_TAG('JOB_NAME',L_JOB_NAME);
          xmldata :=xmldata|| '</JOB_REC>';
          fnd_file.put_line(fnd_file.output,xmldata);
      END LOOP;
      xmldata := '</LIST_JOB>';
      xmldata := xmldata||'</JOB>';
     fnd_file.put_line(fnd_file.output,xmldata);
    EXCEPTION
    WHEN OTHERS THEN
         fnd_file.put_line(fnd_file.log,substr(SQLERRM,1,500));
    END JOBS;
END XML_RPT;

I resolved the problem. I have to put ; in the special character.

Similar Messages

  • Sorting Problem in XML Publisher Report

    Dear Members,
    I am facing problems with sorting data in my XML Publisher Report.
    We are using Oracle E-Business Suite 12.1 Version and i developed a rtf Template and executable is an RDF which generates XML Data.
    I want the whole report to group by element ITEM_NAME which is a character in the ascending order. I tried several ways but it is not working properly.
    I don't know how to upload the RTF template in this forum. I tried to post the XML Code and since its excceds 30000 characters i cant post it in the forum.
    Any help is greatly appreciated.
    Thanks
    Sandeep

    You can't upload the template here; you can post a part of the relevant XML code and template code here.
    or send me a sample XML and RTF template to [email protected] and I will take a look.

  • Reg: Problem  in XML PUBLISHER Report

    Hi all,
    I am working building report using xml publisher. Problem i facing was ,
    *1. I created the template in RTF and attached to data definition*
    for eg: my rtf is
    sno item quantity price ( I created this field in table structure and mapped to xml data)
    Total Price ( this also i am getting from data definition)
    The below is sample constant sentence for my client and typed just below Total Price ( field i mentioned above)
    Inspected  By                                          Approved By     
    *1)*
    ________________________________     1)________________________________     Store Incharge : ______________________
    *2)*
    ________________________________       2)  ________________________________     Received           : _______________________
    *3)*
    ________________________________     3   ________________________________     Prepared  By    :             _______________________
    NOTE : ABOVE MENTIONED LINES ARE CONSTANT ONE.
    2. When i ran the report, if my data definition return 5 lines means , i am getting PDF output Correctly in single page (1st page)
    3) If my data definition returns lines more than 8 lines means, I am getting PDF output with Table structure values with item, in 1 st page and Constant sentence in 2nd page of PDF
    4) If my data definition returns lines between 5 and 8 means, I am getting PDf output with table structure values with item and some of Constant sentence of my client in 1 st page and few of the constanst sentence in 2nd page.
    Actually my need
    Even if the data definitions exceeds more than 5 lines the constant sentence should be placed either in the first page or in the next page based on the no. of lines in the data definition.
    How to resolve this... any approach most welcome. Wat changes i have to make.

    Krishna
    Modified your code a little bit.Use this
        public int submitCPRequest(String shipmentId) {
        System.out.println("into submitCPRequest");
            OAPageContext pageContext;
            OAWebBean webBean;
        try {
    OAApplicationModule am =pageContext.getApplicationModule(webBean);
        OADBTransaction tx = (OADBTransaction)am.getOADBTransaction();
        java.sql.Connection pConncection = tx.getJdbcConnection();
        ConcurrentRequest cr = new ConcurrentRequest(pConncection);
        String applnName = new String("XXAPL"); //Application that contains the concurrent program
        System.out.println("ApplName"+ applnName);
        String cpName = new String("XXAPLPOSMPRD"); //Concurrent program name
        System.out.println("Concc Name"+ cpName);
        String cpDesc = new String(" APL PO Shipping Material Pickup Request"); // concurrent Program description
        // Pass the Arguments using vector
        // Here i have added my parameter headerId to the vector and passed the
        //vector to the concurrent program
        Vector cpArgs = new Vector();
        cpArgs.addElement(shipmentId);
        System.out.println("Args"+ cpArgs);
        // Calling the Concurrent Program
        int requestId = cr.submitRequest(applnName, cpName,cpDesc, null, false, cpArgs);
        cr.addLayout("XXAPL", "XXAPLPOSMPRT", "ENG", "US" , "RTF");
        System.out.println("Req Id"+ requestId);
        tx.commit();
        return requestId;
            catch (RequestSubmissionException e) {
            System.out.println("Into Exception");
            OAException oe = new OAException(e.getMessage());
            oe.setApplicationModule(this);
            throw oe;
            catch(Exception exception)
            throw OAException.wrapperException(exception);
        }Thanks
    AJ

  • XML PUBLISHER report in Excel out put problem

    Hi Experts,
    I have developed one XML report which output type is EXCEL in Oracle Application.
    I am getting some -ve value in the report so I need to do the trailing sign
    Menace for example I got a value -8645 I need to display the value like (8645).
    This functionality is working in PDF output but in EXCEL out put it is not working.
    Could any body please help me on this..
    Its Urgent .
    Thanks in Advance.

    Check this metalink notes, did you got any error..?
    Note: 364547.1 - Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=364547.1
    Note: 359875.1 - Cannot View Xml Publisher Report Output In Excel Format
    Note: 358296.1 - How To Produce Requests In Formats Of HTML, RTF, and Excel From XML Publisher
    Note: 850685.1 - Wrong Output Format In Xml Publisher Output
    Note: 727031.1 - XML Publisher Requests Always Get Defaulted to Output Format as PDF Whatever the Template Type is Set To
    Note: 337343.1 - Unable to View Excel Output File Created by XML Publisher
    Note: 401328.1 - Default Layout Format for XML Publisher Concurrent Request Is Always PDF
    Re: XML Publisher Server on EBS 11.5.10.2

  • Excel Output problem with XML Publisher Report

    Hi Experts,
    I am working on XML Publisher report with EBS 11i and database 9i. My XML Report output type is EXCEL, i have below issue with the output.
    I have column 'quantity' with xml tag <?QUANTITY?>.
    In the XML file it's showing the value '028' for quantity, but when i open the output in EXCEL, it's showing up '28', removing leading zero. I want to show the data in EXCEL also '028'. Could somebody help me how to print the XML Tag value as it is in EXCEL output.
    Thanks in advance.

    Hi, try using this in your template.
    <fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?QUANTITY?></fo:bidi-override>

  • Problem with data size in XML Publisher report

    Hi Experts,
    I am working on EBS11i and database 9i. I working on XML Publisher reports, i have one XML Publisher report with generating output in EXCEL format. If i submit the report, if the data is huge (like 2.3 million records), it's ending up with warning, but if data is less, it's completing normal. Could somebody help me why it's behaving like this, is it because the report is XML Report, the xml file it's generating not have enough memory in server side if the data is huge.
    Could somebody help me how to solve this issue.
    Note: I need output in EXCEL format only.

    Pl identify the version of XMLP you are using.
    Pl post the complete warning message from the concurrent log file. Are there any additional error messages in the Output Post Processor log file ? Have you specified enough temp space using the XML Publisher Administrator responsibility ?
    How to Determine the Version of Oracle XML Publisher for Oracle E-Business Suite 11i and Release 12 (Doc ID 362496.1)
    Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite (Doc ID 364547.1)
    How to set the Temp Directory for BI Publisher ? (Doc ID 1166024.1)
    Output Post Processor (OPP) Log Contains Error "java.lang.OutOfMemoryError: Java heap space" (Doc ID 1268217.1)
    HTH
    Srini

  • Problem in XML Publisher Report submission from OAF Pages

    Hi,
    I am trying to submit Concurrent Program from OAF Page which is an XML Publisher Report.
    The request is Submitting and Completing successfully but when we open to view the out put we are able to view the HTML tags.
    We checked the same Concurrent program by submitting from the SRS window After completing if we click on view output the rtf file is getting opened correctly.
    I tested with normal rdf report it is working fine with standard Concurrent program used in OAF
    So my doubt is
    Does the Standard Concurrent program used in OAF supports the rtf reports.
    Please suggest if any modifications to be done in the Concurrent program
    Krishna

    Krishna
    Modified your code a little bit.Use this
        public int submitCPRequest(String shipmentId) {
        System.out.println("into submitCPRequest");
            OAPageContext pageContext;
            OAWebBean webBean;
        try {
    OAApplicationModule am =pageContext.getApplicationModule(webBean);
        OADBTransaction tx = (OADBTransaction)am.getOADBTransaction();
        java.sql.Connection pConncection = tx.getJdbcConnection();
        ConcurrentRequest cr = new ConcurrentRequest(pConncection);
        String applnName = new String("XXAPL"); //Application that contains the concurrent program
        System.out.println("ApplName"+ applnName);
        String cpName = new String("XXAPLPOSMPRD"); //Concurrent program name
        System.out.println("Concc Name"+ cpName);
        String cpDesc = new String(" APL PO Shipping Material Pickup Request"); // concurrent Program description
        // Pass the Arguments using vector
        // Here i have added my parameter headerId to the vector and passed the
        //vector to the concurrent program
        Vector cpArgs = new Vector();
        cpArgs.addElement(shipmentId);
        System.out.println("Args"+ cpArgs);
        // Calling the Concurrent Program
        int requestId = cr.submitRequest(applnName, cpName,cpDesc, null, false, cpArgs);
        cr.addLayout("XXAPL", "XXAPLPOSMPRT", "ENG", "US" , "RTF");
        System.out.println("Req Id"+ requestId);
        tx.commit();
        return requestId;
            catch (RequestSubmissionException e) {
            System.out.println("Into Exception");
            OAException oe = new OAException(e.getMessage());
            oe.setApplicationModule(this);
            throw oe;
            catch(Exception exception)
            throw OAException.wrapperException(exception);
        }Thanks
    AJ

  • XML Publisher Report with PL/SQL

    Hi
    Like to know how to develop the XML Publisher Report with PL/SQL, i did the following
    1. created a pkg like as below
    CREATE OR REPLACE PACKAGE BODY APPS.TEST_XMLTAG_PKG AS
    PROCEDURE main (errbuf OUT VARCHAR2,
    retcode OUT NUMBER
    ) IS
    BEGIN
    DECLARE
    ctx DBMS_XMLGEN.ctxHandle;
    xml CLOB;
    BEGIN
    ctx := dbms_xmlgen.newcontext('select * from scott.emp');
    dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
    xml := dbms_xmlgen.getxml(ctx);
    dbms_output.put_line(xml);
    Fnd_file.put_line (fnd_file.LOG, XML);
    END;
    END;
    END TEST_XMLTAG_PKG;
    this pkg produces the output with xml tag in the view log.
    I have registered the conc program & xml rtf but it does not produce the output in PDF, , I am not able to get the xml tag when i click the Diagnostics --> View XML.
    can you please let me know the next steps involved.
    Regards
    Yram

    I think the problem is because there is no begin and end tag. save the xml from the logfile and open with xml editor or IE.. then you will see the problem.
    add Begin and end tag...then you should be fine.. i.e
    fnd_file.put_line(fnd_file.output,'<EMP_DATA>'); -- begin Tag
    tx := dbms_xmlgen.newcontext('select * from scott.emp');
    dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
    xml := dbms_xmlgen.getxml(ctx);
    dbms_output.put_line(xml);
    Fnd_file.put_line (fnd_file.LOG, XML);
    fnd_file.put_line(fnd_file.output,'</EMP_DATA>'); -- End Tag
    Hope this helps..>Good Luck
    Ravi

  • Xml publisher report giving warning

    Hi friends,
    I have a issue with xml publisher report. All existing xml publisher reports are working fine. Only the problem is newly created one.
    Application version 11.5.10.2
    dDtabase 9i
    BIdesktop version is 10.1.3.4.1
    MS office  2010
    i checked the OPP log file also.
    but i was unable to find the actual problem.
    Any help please..
    thanks in advance.
    here is the my log data
    [9/15/13 5:39:50 PM] [main] Starting GSF service with concurrent process id = 1673179.
    [9/15/13 5:39:50 PM] [main] Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
    [9/15/13 5:39:50 PM] [Thread-16] Service thread starting up.
    [9/15/13 5:39:50 PM] [Thread-17] Service thread starting up.
    [9/15/13 5:42:53 PM] [OPPServiceThread1] Post-processing request 3596875.
    [9/16/13 7:37:34 AM] [OPPServiceThread0] Post-processing request 3597565.
    [9/16/13 8:05:32 AM] [OPPServiceThread0] Post-processing request 3597581.
    [9/16/13 8:55:50 AM] [OPPServiceThread0] Post-processing request 3597617.
    [9/16/13 9:10:13 AM] [OPPServiceThread1] Post-processing request 3597629.
    [9/16/13 9:20:53 AM] [OPPServiceThread1] Post-processing request 3597634.
    [9/16/13 9:20:53 AM] [1673179:RT3597634] Executing post-processing actions for request 3597634.
    [9/16/13 9:20:54 AM] [1673179:RT3597634] Starting XML Publisher post-processing action.
    [9/16/13 9:20:54 AM] [1673179:RT3597634]
    Template code: XXDB_PENSION
    Template app:  PER
    Language:      en
    Territory:     GB
    Output type:   PDF
    [9/16/13 9:20:56 AM] [UNEXPECTED] [1673179:RT3597634] java.lang.reflect.InvocationTargetException
        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.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:473)
        at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:188)
        at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
        at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
        at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:869)
        at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:204)
        at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1497)
        at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:913)
        at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:1816)
        at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:1278)
        at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
        at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    Caused by: java.io.UnsupportedEncodingException: &Encoding
        at sun.io.Converters.getConverterClass(Converters.java:215)
        at sun.io.Converters.newConverter(Converters.java:248)
        at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:64)
        at sun.nio.cs.StreamDecoder$ConverterSD.<init>(StreamDecoder.java:223)
        at sun.nio.cs.StreamDecoder$ConverterSD.<init>(StreamDecoder.java:209)
        at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:76)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:83)
        at oracle.xdo.parser.v2.XMLReader.setEncoding(XMLReader.java:848)
        at oracle.xdo.parser.v2.XMLReader.checkXMLDecl(XMLReader.java:2718)
        at oracle.xdo.parser.v2.XMLReader.pushXMLReader(XMLReader.java:471)
        at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:263)
        ... 16 more
    [9/16/13 9:20:57 AM] [1673179:RT3597634] Completed post-processing actions for request 3597634.

    I got the solution.
    Cause
    Incorrect encoding value in the report's prolog
    http://appselangovan.blogspot.com/2012/04/reprte-nlsnumericcharacters-error.htmlSolution
    To resolve the issue:
    1.Open the custom report in the Report Builder
    2.Go to the property pallette of the Report
    3.Remove the xml prologue value
    4.Save the changes
    5.Retest the issue.

  • XML Publisher report - Number translation in Italian

    While i am Doing an XMl publisher report in english and Italian Languages i am facing an issue with the Dot translation.
    For eg: 4.5 is translated to 4,5 in Italian.This creates a problem for me when i am doing summary on this column.So how should i handle in case italian.

    better to ask this question in the BI (XML) Publisher Forum: BI Publisher

  • Error running XML Publisher report

    Hi,
    I am running a XML publisher report using xml file as the data source. The output format of the report is a PDF format. When I am running the report in a field change event or through an application engine, for both the things I am getting the following error.
    Error generating report output : %1 (235,2309)
    Error occured during the process of generating the output file from template file,XML data file, and translation XLIFF file.
    Please revert back if you have any suggestions with regards to the above problem.
    Thanks in advance.
    Regards,
    Vamsi.

    Well
    i m also struggling with the same error.
    What i m trying to do is to import/use images in my peoplesoft report. In the template file (rft), the iage element properties are set to
    <fo:instream-foreign-object content-type="image/jpg" xdofo:alt="An Image" ><xsl:value-of select=".//AD_COMPOSITE"/></fo:instream-foreign-object>
    But no output is shown and this error is occured.
    Error generating report output: (235,2309)
    Error occurred during the process of generating the output file from template file, XML data file, and translation XLIFF file.
    Will be Highly ThankFul if someone knows da solution

  • 11i EBS XML Publisher Report with Multiple Data Source

    I need to create XML Publisher report in 11i EBS pulling data from another 10.7 EBS Instance as well as 11i EBS in single report.
    I am not allowed to create extract or use db links.
    My problem is how to create Data Source Connection using Java Concurrent Program.
    The approach I am trying is
    1. create Java concurrent program to establish connection to 10.7 instance.
    2. Will write the SQL queries in Data Tempalete with 2 Data Source 1 for 11i EBS and 2 for 10.7 EBS
    3. Template will show the data from both query in 1 report..
    Is there any other way to proceed using datasource API...
    thanks

    option1:
    The query should be same @ detail level, only the template has to be different for summary and details.
    @runtime, user can choose to see the detail/summary
    Disadvantage, if the data is huge,
    advantage , only one report.
    option2:
    create two separate reports summary and details
    and create diff data and diff layout and keep it as different report
    Advantage, query will perform based on the user run report, summary/detail, so that you can write efficient query.
    Dis advantage , two reports query/template to be maintained.

  • XML Publisher report default output in Excel format.

    Hi,
    We have defined one concurrent program whose output format is text, this concurrent program executable is PL/SQL and in this PL/SQL program we are generating XML data and displaying XML using below fnd_request.
    l_conc_id := FND_REQUEST.SUBMIT_REQUEST('GMP','GMPPDROP','', '',FALSE,
         p_sequence_num,chr(0),'','','','','','','','','','','',
    We have also defined template for this.
    Using below fnd_request we are choosing template and data is getting generated in PDF format. Now our requirement is to display the output by default in Excel format.
    FND_REQUEST.SUBMIT_REQUEST('XDO','XDOREPPB','', '',FALSE,'',
    l_conc_id,554,G_comb_pdr_temp,
    G_comb_pdr_locale,'Y','RTF','',scale_report,'','','','','',
    When i saw XML Report Publisher concurrent program, there is one parameter for Output Format and i tried passing 'Excel'/EXCEL/excel to this parameter but output is still coming in PDF format.
    FND_REQUEST.SUBMIT_REQUEST('XDO','XDOREPPB','', '',FALSE,'',
    l_conc_id,554,G_comb_pdr_temp,
    G_comb_pdr_locale,'Y','RTF','Excel',scale_report,'','','','','',
    I have also tried giving Default Output to EXCEL in template definition but this is also not working.
    Your valuable suggestions highly appreciated.
    Thanks
    Vijay

    Hi;
    What is EBS version? Please see below which could be helpful for your issue:
    Changing Output Format to RTF or Excel in XML Publisher Request Does Not Display Output Correctly [ID 404512.1]
    Cannot View BI Publisher (formerly XML Publisher) Report Output In Excel Format or XHTML [ID 359875.1
    How is Default Output Type Determined for Reports Submitted Using XML [ID 888972.1]
    Also see:
    XML PUBLISHER report in Excel out put problem
    XML PUBLISHER report in Excel out put problem
    Regard
    Helios

  • XML publisher report with a template file missing

    I get the following error
    Active template file not found in the template definition <TEMPLATE_NAME> for date <EFFDT>. (235,2515)
    PSXP_RPTDEFNMANAGER.TemplateDefn.OnExecute Name:GetActiveTemplateFile PCPC:15872 Statement:346
    but in
    Reporting Tools > XML Publisher > Report Definition > Template tab
    I did have the setting Effective date, what cause the problem?

    Have a look at following post and run the sql in this post to see if your template definition is missing.
    http://peoplesoft.wikidot.com/xml-publisher-template-file-missing
    You could also run Application Engine PSXPCLEAN to clean orphan rows.
    Are you running the report online or through PeopleCode?
    In last case make sure the effdt is set correct in PeopleCode.
    Also have a look if your server time settings are correct.
    Hakan

  • Check box in XML Publisher report not displaying

    Hi,
    In my XML Publisher report , my template contains a checkbox, using forms tools i create that check box and run the report
    but output of check box is not comming becoz,The XML Publisher default PDF output font does not support checkbox.
    can any one give idea to solve this who face same problems;
    Regards,
    venkat

    Hi Venkat
    What version of XMLP are you using ?
    Check the user guide, there is an entry in there describing how to specifiy the check box glyph to be used for checks and unchecked.
    Its will either be set using the UI or thru a config file depending on your version.
    Tim

Maybe you are looking for