Error obtained while calling a sub-template in RTF.

Hi,
I am trying to call a sub-template from my RTF template using
<?import: file:///C:\Desktop\Sample RTF\TEST.xsl?>
in a form field and
<xsl:call-template name="add-X"> <xsl:value-of select="." /> </xsl:call-template> in another.
The xsl file related to this template reads as follows:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
<xsl:template name="add-X">
<xsl:param name="string" select="." />
<xsl:if test="$string">
<xsl:text>X</xsl:text>
<xsl:value-of select="substring($string, 1,1)"/>
<xsl:call-template name="add-X">
<xsl:with-param name="string"
select="substring($string, 2)" />
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
But I am ending up with an error. The error obtained is:
ConfFile: D:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
Font Dir: D:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
Template: C:\Documents and Settings\VishnuRam\Local Settings\Application Data\Oracle\BIPublisher\TemplateBuilderforWord\tmp\1\template2.rtf
RTFProcessor setLocale: en-us
FOProcessor setData: C:\Documents and Settings\VishnuRam\Local Settings\Application Data\Oracle\BIPublisher\TemplateBuilderforWord\tmp\1\download_data.xml
FOProcessor setLocale: en-us
java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:641)
     at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:247)
     at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:181)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1151)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:275)
     at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1809)
     at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1027)
     at RTF2PDF.runRTFto(RTF2PDF.java:708)
     at RTF2PDF.runXDO(RTF2PDF.java:520)
     at RTF2PDF.main(RTF2PDF.java:305)
Caused by: oracle.xdo.parser.v2.XMLParseException: The 'import' element children must precede all other element children of an 'stylesheet' element.
     at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
     at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
     ... 14 more
I will be glad if anybody can give me the idea where I am going wrong?
Regards,
Message was edited by:
VishnuTR

Put this as the first line in rtf
The 'import' element children must precede all other element children of an 'stylesheet' element.

Similar Messages

  • Getting error message when calling the sub templates

    Hi,
    I developed an RTF template which contains a cross tab report. There is also a logo and
    many other fields above and below the cross tab. If the cross tab output goes to the next page dynamically then the other fields, present above and below the cross tab, should also be displayed. So i kept the fields above the cross tab report as header and the fields below the cross tab as footer using <?start:body?> and <?end body?>. When i preview the RTF then am getting the desired output with headers and footers repeating in all the pages.
    If i call this RTF from another main template(import RTF) then am getting error java.lang.NullPointerException.
    If i change <?start:body?> and <?end body?> to <?body-start?> and <?body-end?> then am getting the output. But the header and footer is printed in 1st page only and not printed from 2nd page.
    Can anyone please suggest how to display the headers and footers in all pages.
    Thanks,
    Subba Reddy

    Hi,
    Thanks for ur replay. I also tried creating header and footer and called from the template(summary.RTF). If i preview the template then it is working fine. Headers and footers are displayed in all the pages. But if i call this summary.RTF from another main template then headers and footers are dispalyed in the 1st page only. I cant call the headers and footers from the main template since the main template calls many other templates apart from Summary.RTF. This headers and footers should be displayed only for Summary.RTF
    Thanks.

  • Internal Error occurred while calling the ProcessDPCommands API

    We have installed Business Objects XI  with MySQL. We are getting following error when we click on view query on the WEBI Reports
    " Internal Error occurred while calling the ProcessDPCommands API  Error WIS 30270".
    When we change the CMS database to ORACLE everything works fine it looks like some issues when CMS database is MYSQL
    Please hep to fix this problem
    Installation is on Solaris 10
    Edited by: AshishDatar on Nov 6, 2009 3:00 PM
    Installation is on Solaris 10

    did you check whether universe connection is pointing to the correct db?The following url might be helpful:
    [http://www.forumtopics.com/busobj/viewtopic.php?t=52355&view=previous]

  • An internal error occurred while calling 'submitReport' API. (Error: ERR_WI

    An internal error occurred while calling 'submitReport' API. (Error: ERR_WIS_30270)
    We get above mentioned error message at any point in WebI Rich Client.
    DataSource: Teradata 12.0 (Local machine)
    BO XI 3.1 Client installed on local machine
    Universe (Secured connection)
    WebI : desiging and creating in Standlone mode
    WebI client version : 12.1.0.882
    Many times above written error is thrown 2-3 times even when we click on OK button and lastly followed by new error message:-
    Unable to get the first page of the current report - Web Intelligence will switch to structure view (WIJ 20003).
    Flow: We create report based on locally saved universe. There are couple of scenarios for which error comes
    1) After successfully saving the report, reopen and refresh causes this error (1st error and 2nd)
    2) Droping a properly written variable on measure column, if done Ctrl + Z, report works sometimes (both or 2nd error message)
    3) Draging out the mesaure or dimension from report (only 2nd error)
    Report is simple and no other stuff except the cross tab table
    Even if we start with simply dropping the dimension and measures on report, 2nd error comes at any time.
    What we noticed is that if we do all desiging in structure mode and then run instead of in result mode, reports works for more time.

    You can have a look here:
    Input Controls with Break Error on webi report
    http://www.forumtopics.com/busobj/viewtopic.php?t=60789&postdays=0&postorder=asc&start=45
    Re: internal error occurred while calling the 'submitReport' API.
    I'm Back
    HAPPY NEW YEAR

  • An internal error occured while calling 'processDPCommandsEx' API. (Error: ERR_WIS_30270)

    Hi ALL,
    I am facing a wierd issue while opening/refreshing/broadcasting a webi report.
    The error message scrnshot:
    This error is not throughout the reports, but for specific reports only, when checked the Bex query definition it works fine, but gives error for Webi reports.
    Recently we had upgrade of BO 4.0 SP7 patch 9.
    The reports are directly built on Bex queries, Bex queries contains simple Structures and few CKF's.
    Would be thankful for any help recieved in resolving the above issue.
    Regards,
    Jaywant Kulkarni.

    Hi jaywant,
    Please check the note: 1760827 it may be helpful
    ( An internal error occurred while calling the 'processDPCommands' API. (ERR_WIS_30270) due to some scenarios.
    Scenario 1:
    Error occurs when try to refresh a migrated Web Intelligence report in InfoView, after entering a date or dates for prompts.
    Suggested Solution:
    Modify problematic report in Webi. 
    Change the prompt definition to be a constant, run the report in Webi, and save it. 
    Change the prompt definition back to prompt with required date definition. Make sure you are using the correct date format! (The report prompt should tell you what the format is supposed to be.) Re-run the report in Webi, and save it. 
    Re-open the report in InfoView and refresh.
    Scenario 2:  Error occurs when trying to edit the properties of a Webi report containing merged dimensions.
    Suggested Solution:
    Remove the merged dimensions and then re-establish them.
    Scenario 3:  Error occurs when the InfoView report has been open and idle for a long time.
    Suggested Solution:
    This error can be an indication of a time-out, based on the server’s settings.  Make sure you save your work often.  You will need to close and re-open the report when you get this error, and you may have lost any unsaved changes.

  • Default space after calling the sub template

    Hi All,
    I am calling sub template in the header of rtf report. Even though there is no spaces between header and report title, when previewing it displays a gap between the output of sub template and report title. In the sub template there is no spaces. Is it by default rtf creates spaces after calling sub template in header?
    Thanks,
    Sushil

    Even if i use simple <?call@inlines:HeaderENF?> <?end call?> <?import:file:C:/map/Header-Landscapem1.rtf?>  command in rtf header, there is still spaces between sub template values and AAA.
      AAA....
    The sub template has following code:
    <?template:Header?>
    <?param:dw_date; string?>
    DW REFRESH DATE: <?$dw_date?>
    <?end template?>
    I am using 11.1.1.6.4.
    Is it by default there will be spaces after calling the sub template?

  • An internal error occured while calling 'getBlob' API. (error: ERR_WIS_3027

    Hi Team,
    Please help me in resolving the below error message.
    One of my user is experiencing this when trying to run a report.
    "An internal error occured while calling u2018getBlobu2019 API. (error: ERR_WIS_30270)". I have checked the previous discussion on the same, But I could not get it. Could some one help me as what I can do to resolve this.
    Thanks in Advance
    Mmvihar

    Hi George Pertea,
    Appreciate your prompt response.
    I found a simple solution for this.
    This error message occurs when the TOMCAT server memory exceeds more than 1.3 gb. Hence, restart the TOMCAT server would resolve this issue.
    Here are the steps in detail.
    1. Log into each server through either citrix, remote desktop or mstsc from run command.
    2. Click on task Manager.
    3. Click on process, if you find TOMCAT memory is more than 1.3 gb, come back to CCM and stop tomcat server.
    4. Wait for 20 seconds and then start tomcat server. Check all the remaining servers and do the same
    This resolved the issue.
    Thanks & Regards
    Mmvihar

  • "An internal error occured while calling 'answerPrompts' API.(Error: wis_30

    Hi Gurus
    Getting an error message while running a webi report from infoview link(server:8080/InfoViewApp/logon.jsp)
    as
    "An internal error occured while calling 'answerPrompts' API.(Error: ERR_WIS_30270)
    I found that while selecting refresh checkbox in one of the query which is using .xls file from the local system this is showing above error while running from above link.
    If it is unchecked it is running without any error.
    while running report from webirichclient(where we are developing reports) it is running without any error.
    Thanks in Advance
    Regards
    Ritu Raj

    It seems you are on SP3, and I assume the operating system of the BO server is Windows based.
    Please cross-check that the Excel version you have matches the ODBC driver in the supported platforms document for XI3.1 SP3 [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4079f8f6-2b49-2d10-d790-bc596012dc25]
    Second thing, I would like to see screenshots of what you mean by
    "I found that while selecting refresh checkbox in one of the query which is using .xls file from the local system this is showing above error while running from above link.
    If it is unchecked it is running without any error."
    just to avoid misunderstandings from my side
    Thanks!
    Best regards,
    Simone

  • An internal error occured while calling 'getBlob' API.(Error: ERR_WIS_30270

    Hi,
    I am using BOXI R3.1, when i open a Webi Report & getting one Error:
    An internal error occured while calling 'getBlob' API. (Error: ERR_WIS_30270).
    Do anyone know how to fix error?
    Regards,

    Hi,
    this is an old thread..
    There are a great many potential reasons for this problem.
    I would recommend you use  our Knowledge Base search on SMP - link here:  http://service.sap.com/xsearch
    .. and search for terms :  webi 'getBlob' API
    Also, some information about your Product version and Patch level is requiered.
    Also, any explanation of workflow -  
    does it only happen when opening report? 
    are you using OpenDoc  hyperlink  navigation? 
    Moving between report tabs?   
    Are many Schedules running concurrently at that time ?
    regards,
    H

  • Error Message: An internal error occured while calling 'openDocumentMDP' AP

    Hi,
    I am working on BO XIR3.1,
    we have two acceptence environment and we use the same liscense key for both the environment.
    i am trying to schedule a report in the acceptence environment and my scheduling  is geting failed.
    due to the reason below
    Server Used: XXXXXXXX.AdaptiveJobServer 
    PID:  3444 
    Parent Object Path: Cust Reports/ 
    Remote Instance in Federated Cluster: No 
    Expiry: 2/16/2022 8:59 AM 
    Formats: Web Intelligence 
    Parameters: 
    Error Message: An internal error occured while calling 'openDocumentMDP' API. (Error: ERR_WIS_30270)  .
    it is a very urgent issue ,kindly help me out to solve this issue.

    Thanks Amith,
    You are getting error in all reports or particular report?
    All the reports
    These reports  are migrated from one environment to other?
    No,it was created in the same environment
    what is the BO SP level?
    SP 1
    restart the SIA and then schedule report and see you are getting error or not?
    I had done this ,and i am geting the same error.
    Kindly help me out with a solution.
    Regards
    S.Cyril

  • Problem creating dynamic URI for importing xsl sub templates in rtf

    Hi,
    We are using xsl based sub templates in RTF. My code in RTF to import sub template is
    <?import:http://localhost:7001/xmlpserver/Header.xsl?>
    <?call@inlines: CustomerReportHeader?><?end call?>
    This sub template import statement is used in lot of RTF's. We require to configure host,port name in server run time properties and will get the value in RTF and will construct URI dynamically ,So we put one property in xdo.cfg.
    xdo.cfg contains as below
    <config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
    <properties>
    <property name="xdk-secure-io-mode">false</property>
    </properties>
    <properties>
              <property name="xslt.HTTP">'localhost:7001/xmlpserver'</property>
    </properties>
    </config>
    and i changed my sub template call to
    <?import:http://${HTTP}/Header.xsl?>
    <?call@inlines: subtemplate1?><?end call?>
    Where subtemplate1 : is one sub template in side Header.xsl
    This configuration is not working. The HTTP value is not being parsed. The BI publisher throwing exception as "Unknown host exception ${HTTP}"
    Please note that : I am able to print HTTP run time variable value in report by <?$HTTP?> adding in Form Field text.
    I have installed BI publisher 10.1.3.4.1 (xmlpserver) in weblogic 10.3.5
    Please guide us on this above problem.

    Hi,
    The problem got resolved when we tried same thing in BI publisher 10.1.3.4.2 (xmlpserver) in weblogic 10.3.5. It seems that BI publisher 10.1.3.4.1 does not have dynamic URI support.
    Thanks,
    Sanjaya
    Edited by: Sanjaya on Sep 4, 2012 2:09 AM

  • How to call a Sub template in BI Publisher for the same Loop

    Hi,
    I'm trying to achieve a multi template invoice customer facing Report output by using sub templates in BI publisher. I've stored the Template2.rtf file in Local machine temp directory and calling it in the main RTF. My Scenario is as described below:
    <?import:file:///C:\temp\Template2.rtf?>
    <? For-each@section: HEADERS?>
    ****Contents of header data and it's line***
    <?start@last-page:body?><?end body?>
    ***last page sub totals****
    **in next page i'm calling another .rtf file which is the second This template should repeat for each header transaction**
    <?call-template:Template2?>
    <?end for-each?>
    While trying to preview the output from Bi publisher Template, either it goes to infinite loop or it hangs up with error.
    Am i getting it wrong? for the Template2.rtf which i'm calling has contents <?template: template2?> <? For-each: cust_headers?> ** logic** <?end-for-each?> <?end template?>
    So for a given transaction i need to print two templates. All the data will be under <header> group. Please help me out if i'm missing something in the above.

    Do you get a "Template invoked but not defined error"? If so, the reason is because you the template can not be found...
    In your case, you have defined the template as:
    <?template: template2?> <? For-each: cust_headers?> ** logic** <?end-for-each?> <?end template?>
    However, in your call statement, you have (upper case T): <?call-template:*T*emplate2?>
    Change that and see if it resolves your error. If not provide details about the error.
    Thanks,
    Bipuser

  • SSL error happened while calling a web service on a managed oc4j instance

    While calling a webservice, I got SSL Error: Unrecognized SSL message, plaintext connection? The webservice is deployed on a managed oc4j which is created on a 10.1.3.4 oracle application server. We have SSL certificate installed for http server.
    Any ideas?
    Thanks!

    Hello,
    The error is stating there isn't a descriptor for the Agent class the app is trying to execute a query on. This could be due to improper mappings, but assuming Agent is mapped, is more likely due to a classloader issue. TopLink uses the classloader at login to initialize the descriptors and hash them on the Class objects. If the application uses a different classloader, descriptors will not be found for classes loaded from the new classloader. How are you obtaining sessions, and where is the session being used?
    Best Regards,
    Chris

  • "A technical error during invocation : Could not invoke service reference" Error message while calling a service from BPM

    Hi Experts,
    We are facing a issue while calling a Automated activity from BPM process, the process gets suspended and the BPM logs says "Process XYZ suspended, A technical error during invocation: Could not invoke service reference name fdhueoegghejietyhsjk6886 Component name ABC " We have already checked the mapped service reference and provider system. Gone through the below link, but no help.
    http://http://wiki.scn.sap.com/wiki/display/TechTSG/Sending+a+message+from+SAP+NetWeaver+BPM+process+to+PI+fails+via+automated+activity?original_fqdn=wiki.sdn.sap.com
    Any pointers or suggestions to fix up this issue will be highly appreciated. Thanks in advance.
    Regards,
    Mohit Jaju

    The details/ID in NWDS Service Reference must exactly match the SOA configuration. Sometimes it's possible you have changed the reference or the group itself and something changed to become mismatched.
    It's possible they don't match - but the SG itself will show green in NWA since the service exists and responds on the target system. Does the ID listed in the error match what is shown in the NWDS project?
    regards, Nick

  • Error getting while calling a webService from XI

    Hi
    We are getting the follwoing error while calling a webservice from XI. We Could call the same webservice from XML spy. Have checked the SOAP adapter it was running fine and the communication channel parameters too.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Inbound Message --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code area="MESSAGE">GENERAL</SAP:Code><SAP:P1/><SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.MessagingException: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault</SAP:AdditionalText><SAP:ApplicationFaultMessage namespace=""/><SAP:Stack/><SAP:Retry>M</SAP:Retry></SAP:Error>
    Please try to help.
    Thanks
    Ramesh

    Hi
    Thanks a lot for your kind support.
    Hi Moorthy
    We have created one Asyn MI and wrapped the external definition into that, Haven't done any mapping for responce. Please find the trace below.
    Hi Bhavesh
    It was great helpful link but the payload days is not visible for this message it was containing details about sending. For some other message i could see payload.
    I Could see one differnce in the XML Spy and "XI payload before entering SOAP Adapter"
    The following line doesn’t appear in the XI payload.
    <m:StatusUpdate xmlns:m="http://localhost/StatusUpdate" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    </m:StatusUpdate>
    Is this line would be embeded in the SOAP Adapter??? Please find the trace below. Please help me if you have any additional info.
    The message was successfully received by the messaging system. Profile: XI URL: Using connection AFW. Trying to put the message into the receive queue.
    Message successfully put into the queue.
    The message was successfully retrieved from the receive queue.
    The message status set to DLNG.
    Delivering to channel: CC_SOAP_Rcvr_D_Pick_ZALEAUD
    SOAP: request message entering the adapter
    SOAP: completed the processing
    SOAP: response message received 4cb3fab0-7fc5-11db-8c5a-000f203c93e0
    SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault
    SOAP: sending a delivery error ack ...
    SOAP: sent a delivery error ack
    Exception caught by adapter framework: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault
    Delivery of the message to the application using connection AFW failed, due to: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault.
    The asynchronous message was successfully scheduled to be delivered at Wed Nov 29 16:23:51 GMT 2006.
    The message status set to WAIT.
    Retrying to deliver message to the application. Retry: 1
    Kind Regards
    Ramesh
    Message was edited by:
            Ramesh Reddy Pothireddy

Maybe you are looking for