Problem with XML Publisher report when there are no detail records.

I am working on an Oracle XML Publisher procurement report (Oracle E-Business Suite R12) that starts with a budget amount that is imported from our financial system, then lists all requisitions and orders that are in process (not approved). The amounts of all those unapproved requisitions/orders are totaled using a Sum form field, to be followed by a field where the unapproved requisition/order total is subtracted from the budget amount (amount available). I am running into a problem when there are no unapproved requisitions. When I run the report for such instances, it completes with a warning -- here is what it states in the OPP log:
oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'sum'
I have altered my sum field on the RTF template to include an if statement in case of a null value...
<?sum (EXTENDED_COST)?> <?xdofx:if sum (EXTENDED_COST) = " then 0 end if?>
...but this does not work.

Hi,
You are on right track. Simply put summary field in header group and remember to set reset at property to Header Group Not Child and now you can use this field in format trigger.
Format trigger must be written on header frame.
Cheers !
Adinath Kamode

Similar Messages

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

  • Hide table headers when there are no detail records

    Hi,
    I am trying to write a formatting trigger to hide the headers when no rows are fetched.
    i created a summary column with count, reset at detail group, and source one of the column .
    and formatting trigger with following code:
    if (:CS_7 = '0')
    then
    return (FALSE);
    else
    return (TRUE);
    end if;
    when i run the report i am getting the following error.
    formatting trigger 'M_G_DETAIL_CLAIMS_LISTING_GRPF' referenced the column cs_7 at wrong frequency level.
    Pls some one help me on this

    Hi,
    You are on right track. Simply put summary field in header group and remember to set reset at property to Header Group Not Child and now you can use this field in format trigger.
    Format trigger must be written on header frame.
    Cheers !
    Adinath Kamode

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

  • Excel output for the xml publisher report when it is [b]scheduled [/b]

    How to get the excel output for the xml publisher report when it is scheduled by a apps user? Like what is the user profile option (for the apps user who runs the report) and what are the other things that needs to be taken care of so that only this xml publisher report run by this apps user produces a EXCEL output (When scheduled) ???
    Really appreciate it if any one can help me in this regards.
    Thanks
    Munna

    Hi Munna,
    For eBusiness Suite (apps user) the report output is stored the same way whether executed immediately or scheduled.,To get excel set the options > output format to Excel. Only the user that submitted the report can view it, or you can get the output file from the server. Or you can set the notify option so that a Workflow Notification is sent when the request completes.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • 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

  • URGENT please !!! Problem with XML Publisher , OAF Integration

    Hi,
    I am trying to integrate an XML Publisher Report into OA Framework but running into issues.
    If you could help me or give any pointers I would greatly appreciate it.
    When run the report through Concurrent Manager, it runs without any problem. But, when I run
    it from OAF, nullpointer exception is raised at this statement i.e. datatemplate.processData();
    I did go through many threads related to this topic, but couldn't get any help.
    This is what I have done
    ========================
    1. Wrote a PLSQL package to generate XML output.
    BEGIN
    open c_person;
    fetch c_person into v_last_name;
    close c_person;
    fnd_file.put_line(FND_FILE.OUTPUT,'<?xml version="1.0" encoding="UTF-8"?>');
    fnd_file.put_line(FND_FILE.OUTPUT,'<QUALIFICATION_REPORT>');
    fnd_file.put_line(FND_FILE.OUTPUT,'<CANDIDATE>');
    fnd_file.put_line(FND_FILE.OUTPUT,'<CANDIDATE_NAME>'||v_last_name||'</CANDIDATE_NAME>');
    fnd_file.put_line(FND_FILE.OUTPUT,'<QUALIFICATIONS_LIST>');
    FOR c1_Rec IN c_qual LOOP
    fnd_file.put_line(FND_FILE.OUTPUT , '<QUALIFICATION>');
    WritetoXMLForRTF('NAME' , c1_rec.name);
    WritetoXMLForRTF('CATEGORY' , c1_rec.category);
    WritetoXMLForRTF('START_DATE' , c1_rec.start_date);
    WritetoXMLForRTF('END_DATE' , c1_rec.end_date);
    WritetoXMLForRTF('SUBJECT' , c1_rec.subject_meaning);
    WritetoXMLForRTF('GRADE_ATTAINED' , c1_rec.grade_attained);
    WritetoXMLForRTF('HQ_STATUS' , c1_rec.hq_status);
    fnd_file.put_line(FND_FILE.OUTPUT , '</QUALIFICATION>');
    END LOOP;
    fnd_file.put_line(FND_FILE.OUTPUT,'</QUALIFICATIONS_LIST>');
    fnd_file.put_line(FND_FILE.OUTPUT,'</CANDIDATE>');
    fnd_file.put_line(FND_FILE.OUTPUT,'</QUALIFICATION_REPORT>');
    retcode := 0;
    END;
    2. Defined a concurrent program to call this PLSQL package/procedure.
    3. Defined a RTF template.
    4. Registered both the data definition and report template using XML Publisher Admin.
    5. Within OA Framework, I have coded as follows.
    Controller
    Process Form Request
    Added a button to invoke the report.
    if (pageContext.getParameter("AddlQualRptBtn") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String p1 = "17965";
    String TemplateApplicationShortName = "CPC";
    String TemplateCode = "CPC_QUAL_RPT" ;
    BlobDomain result = (BlobDomain) getXMLData(p1,pageContext,webBean);
    Properties prop = new Properties();
    prop.put("html-image-dir",pageContext.getTemporaryImageLocation());
    prop.put("html-image-base-uri",pageContext.getTemporaryImageLocation());
    try {
    DocumentHelper.exportDocument( pageContext,
    TemplateApplicationShortName,
    TemplateCode,
    "en" , //Language
    "US" , //Territory
    result.getInputStream(),
    Template.TEMPLATE_TYPE_RTF, //OutputType,
    prop);
    } catch (Exception e)
    throw new OAException("Exception" + e.getMessage(),OAException.ERROR);
    getXMLData
    public BlobDomain getXMLData(String pPersonId, OAPageContext pageContext, OAWebBean webBean)
    BlobDomain blobDomain = new BlobDomain();
    OAApplicationModule oaapplicationmodule = pageContext.getApplicationModule(webBean);
    OADBTransaction oadbtransaction = oaapplicationmodule.getOADBTransaction();
    try
    String dataDefCode = "CPC_IREC_QUALIFICATION_RPT" ;
    String dataDefApp = "CPC";
    DataTemplate datatemplate = new DataTemplate(((OADBTransactionImpl)oaapplicationmodule.getOADBTransaction()).getAppsContext(), dataDefApp,dataDefCode );
    Hashtable parameters = new Hashtable();
    parameters.put("p_person_id",pPersonId);
    datatemplate.setParameters(parameters);
    datatemplate.setOutput(blobDomain.getBinaryOutputStream());
    datatemplate.processData();
    catch(SQLException e)
    throw new OAException("SQL Error=" + e.getMessage(),OAException.ERROR);
    catch (XDOException e)
    throw new OAException("XDOException" + e.getMessage(),OAException.ERROR);
    catch(Exception e)
    throw new OAException("Exception" + e.getMessage(),OAException.ERROR);
    return blobDomain;
    6. When I run the report from OAF the statement "datatemplate.processData();" generates Null Pointer Exception error.

    Hi TyskJohan,
    Thanks a lot for your reply, I appreciate it !!
    Here is the full error stack. I added many debug statements and identified that it exactly fails at datatemplate.processData();
    I did run the PLSQL procedure and it does creates the XML output properly. Also, the report works fine if I run it through Concurrent Manager. Is there any other way I can check from within OA Framework?
    Thanks again.
    [031108_031818343][][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 pgcps.oracle.apps.per.irc.selfservice.webui.pgcpsIrcAddlQualRptCO.getXMLData(pgcpsIrcAddlQualRptCO.java:114)
         at pgcps.oracle.apps.per.irc.selfservice.webui.pgcpsIrcAddlQualRptCO.processFormRequest(pgcpsIrcAddlQualRptCO.java:81)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(OAHeaderBean.java:408)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2675)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1682)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at OA.jspService(OA.jsp:34)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    --------------------------------------------------------------------------------------------------------------------

  • OAF page with XML Publisher report

    Hi All,
    I am trying to create a OAF page with an XML Publisher report. I am not able to create a 'defaultSingleColumn' region which extends '/oracle/apps/xdo/oa/common/webui/DocumentViewerRn.MainRegion', getting a Confirm message and Validation error and they are:
    Confirm message:
    Component "/oracle/apps/xdo/12.0.0/mds/oa/common/webui/DocumentViewerRn.MainRegion" cannot be referenced from
    "/xx/oracle/apps/xxbsk/payslip/webui/PaySlipViewPG.region1" because it violates scope restrictions.
    Are you sure you want to use component "/oracle/apps/xdo/12.0.0/mds/oa/common/webui/DocumentViewerRn.MainRegion"?
    Validation Error:
    The value "oracle/apps/xdo/12.0.0/mds/oa/common/webui/DocumentViewerRn.MainRegion"
    set on the "Extends" property for component
    "/xx/oracle/apps/xxbsk/payslip/webui/PaySlipViewPG" contains multiple naming separators.
    I am trying to develop this page for R12.1.3 and using correct version of JDev (Patch 9879989).
    I am following the below link for embedding the XML PO into my page:
    http://oracle-hack.blogspot.co.uk/2012/04/launching-xml-publisher-from-oa.html
    Could you please help why I am getting error while extending region.
    Thank you,
    Ramu

    Hi. Could you please tell me how did you make it work. I read and try the same document at ttp://oracle-hack.blogspot.co.uk/2012/04/launching-xml-publisher-from-oa.html
    But I got null point exception at one of xdo package which is Oracles own class. I think something is wrong or forgotten in this document.
    Berkay

  • PROBLEM WITH XML PUBLISHER AND GRAPH NOT DISPLAYING IN ORACLE APPS

    Hi
    All you XML Gurus here. I have a problem, When i create a report in XML Publisher desktop i can see a graph im putting into the report on preview and works fine. But when i upload the report as a rtf file into Oracle applications i can see everything else the table logo and stuff .. But just not the Graph Itself when run on the concurrant manager....
    Problem number 2
    Is there a way that i can use XML Desktop and create a line graph with 2 lines rather than 1 plotting
    here is my xml for graph i have made with one line
    chart:
    <Graph>
    <Title text="" visible="true" horizontalAlignment="CENTER"/>
    <LocalGridData colCount="{count(.//SELF_OTHERS)}" rowCount="1">
    <RowLabels><Label></Label></RowLabels>
    <ColLabels>
    <xsl:for-each select=".//SELF_OTHERS"> <Label><xsl:value-of select="BEHAVIOUR"/></Label>
    </xsl:for-each>
    </ColLabels>
    <DataValues>
    <RowData>
    <xsl:for-each select=".//SELF_OTHERS"> <Cell><xsl:value-of select="SCORE"/></Cell>
    </xsl:for-each> </RowData>
    </DataValues>
    </LocalGridData>
    </Graph>
    All help would be much appreciated to my 2 problems....
    Thanks
    Sha

    Hi All
    Will post solution tomorrow or Monday on blog. Heres the chart XML for now.
    chart:
    <Graph graphType="LINE_VERT_ABS"><LegendArea visible="true" />
    <LocalGridData colCount="{count(xdoxslt:group(.//SALE, 'YEAR'))}" rowCount="3">
    <RowLabels>
    <Label>SOFTWARE</Label>
    <Label>HARDWARE</Label>
    <Label>SERVICES</Label>
    </RowLabels>
    <ColLabels>
    <xsl:for-each-group select=".//SALE" group-by="YEAR" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Label>
    <xsl:value-of select="current-group()/YEAR" />
    </Label>
    </xsl:for-each-group>
    </ColLabels>
    <DataValues>
    <RowData>
    <xsl:for-each-group select=".//SALE" group-by="YEAR" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Cell>
    <xsl:value-of select="sum(current-group()/SOFTWARE)" />
    </Cell>
    </xsl:for-each-group>
    </RowData>
    <RowData>
    <xsl:for-each-group select=".//SALE" group-by="YEAR" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Cell>
    <xsl:value-of select="sum(current-group()/HARDWARE)" />
    </Cell>
    </xsl:for-each-group>
    </RowData>
    <RowData>
    <xsl:for-each-group select=".//SALE" group-by="YEAR" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Cell>
    <xsl:value-of select="sum(current-group()/SERVICES)" />
    </Cell>
    </xsl:for-each-group>
    </RowData>
    </DataValues>
    </LocalGridData>
    </Graph>
    with the following data
    <?xml version="1.0" encoding="UTF-8"?>
    <SALES>
         <SALE>
              <YEAR>2006</YEAR>
              <SOFTWARE>1200</SOFTWARE>
              <HARDWARE>850</HARDWARE>
              <SERVICES>2000</SERVICES>
         </SALE>
         <SALE>
              <YEAR>2007</YEAR>
              <SOFTWARE>1000</SOFTWARE>
              <HARDWARE>800</HARDWARE>
              <SERVICES>1100</SERVICES>
         </SALE>
         <SALE>
              <YEAR>2008</YEAR>
              <SOFTWARE>900</SOFTWARE>
              <HARDWARE>1200</HARDWARE>
              <SERVICES>1500</SERVICES>
         </SALE>
    </SALES>
    The latest Template Builder makes this a cinch!
    Regards
    Tim
    http://blogs.oracle.com/xmlpublisher

  • 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

  • Problem with "lbl.publish" transition  when skip approval programmatically

    Hi all ...
    I am currently trying to "Skip Approval" programmatically by executing the "lbl.publish" transition, like this in a KM repository service:
    IRepositoryServiceFactory repositoryServiceFactory =
       ResourceFactory.getInstance().getServiceFactory();
    IStatemanagementManager statemanagementManager =
        (IStatemanagementManager) repositoryServiceFactory.getRepositoryService(resource, IWcmConst.STATEMANAGEMENT_SERVICE);
    IStatemanagementResource sResource =
         statemanagementManager.getStatemangementResource(resource);
    IResourceTransition resourceTransition =
         sResource.getTransition("lbl.publish");
    if (resourceTransition != null)
        resourceTransition.execute();                                   
    But this do not work, and instead raise this ExecMessage: <b>"You are not allowed to carry out this action"</b>
    Please Help
    Best regards
    Jonathan

    Thank you Ankur...
    Your tip solved my problem; I already reward you with 10 points!!
    Best Regards
    Jonathan.

  • Dynamic Image Problem in xml publisher report

    Hey guys,
    I hope you doing well.
    I am facing a problem in rtf template for offer letter. I have requirement that applicant signature will be print on Offer letter. For that insert dummy image and change his Alternative text to url:{concat('${OA_MEDIA}','/',IMAGE_FILE)}
    Where IMAGE_FILE is image file name like 14.gif etc which is exist in OA_MEDIA.
    The Problem is that when I check output from application the image is blank but when I change IMAGE_FILE to hardcoded 14.gif its show image. Please help me.
    Waiting for your help
    Thanks and regard’s
    Mazhar

    Assuming that the report is run on EBS, change it to url:{?${OA_MEDIA}/IMGFILE?}
    Thanks
    Shree

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

  • Custom XML Publisher Reports in EBS 11.5.10.2 Fails Randomly

    Hi Experts,
    I have a Custom XML PUblisher Report Concurrent Program in EBS 11.5.10.2.
    The Report fails randomly with a Warning. I get the following error,
    [11/21/08 12:17:21 PM] [UNEXPECTED] [915997:RT3085490] java.io.FileNotFoundException: /u01/PROD/prodcomn/admin/out/PROD_irl-dub-finmdt-01/o3085490.out (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:229)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    As you can the OPP fails to find the o3085490.out file in the $APPLCSF/$APPLOUT directory and actually the file is not there in the unix box on that location.
    If the same report is submitted again it Works fine, But not at all times.. some of them fails with the above error message.
    Any pointers to solve this one.
    Regards

    Hi,
    We are on Multi-node set up with two middle-tiers with a load balancing option Yes.
    The XML Publisher Version is 5.6.0. Is it required to move to 5.6.3 ?
    Please find a detailed explaination of the issue.
    Issue
    XML Publisher Reports Fails Randomly in Production
    Detailed Explaination
    XML Publisher Reports submitted in Production completes with Warning. You can say 1 out of 4 requests submitted in a sequence will fail.
    The Log message of the COncurent Program is something like this,
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 3091786 on node IRL-DUB-FINMDT-01 at 23-NOV-2008 15:36:58.
    Post-processing of request 3091786 failed at 23-NOV-2008 15:36:58 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Checking the Output Post Processor Log gives the following message
    [11/23/08 6:25:01 PM] [UNEXPECTED] [925353:RT3092523] java.io.FileNotFoundException: /u01/PROD/prodcomn/admin/out/PROD_irl-dub-finmdt-01/o3092523.out (No such file or directory)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:229)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    Its evident from the message the output file for the request is not generated.
    Some Findings to pass on to Version 1
    1. Report in not picked up for execution in this case as even the first statement is not executed and there is no oracle session and os process asscociated with it.
    I enabled trace and the trace was generated only for the successful ones and it was never generated for the ones completed with warning.
    2. The below query gives no values for the failed concurrent request, where as all successful ones have valid values.
    SELECT oracle_process_id,oracle_session_id,os_process_id
    FROM fnd_concurrent_requests
    WHERE request_id = 3091786
    Regards

  • How to invoke XML publisher report from APPS 11i forms

    I have a requirement in oracle application forms menu where I need to call the XML publisher report when user clicks the menu item.
    I am using following two API's
    fnd_request.add_layout
    fnd_request.submit_request
    But I am getting the error message
    java.sql.SQLException: No corresponding LOB data found :SELECT L.FILE_DATA FILE_DATA.......
    your help is truly appreciated.
    Thanks
    Siva

    I have registered the report using admin responsibility and ran the reprt form SRS and completed successfully. Eeven from the forms it is submitting the request but the request completed as warning with above message. I can see the out put by clicking the View XML button but it unable to publish output.
    Thanks guru your quick response.
    Thanks
    siva

Maybe you are looking for