WPC custom webform error

Hi,
We are trying to develop custom webform in web page composer as mentioned in below how to guide / help document.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2041eb17-6001-2b10-b08d-b95ce55fa9b7
or
http://help.sap.com/saphelp_nw70/helpdata/EN/45/fef93198f13830e10000000a11466f/frameset.htm
We are using the same xml and xsl files mentioned in the document .
While preview or adding the site content to the page we are getting below error.
Cannot render container : Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:7)
Appreciate any help.
Thanks,
Abdul Raheem S

Hi Jagadeesh,
the note tells you to go to System Administration -> System Configuration -> Knowledge Management -> Content Management -> Web Page Composer -> Editor -> XSLT Helpers
and check if there is a XSLT Helper with the following parameters:
name: anonymous
Alias: *
Implementation: com.sap.nw.wpc.km.service.editor.xslt.XsltHelperRuntimeStandard
Key for Description: Define helper for default
PRT Mode: *
If not, create one and restart the portal.
See if this helps,
Robert

Similar Messages

  • WPC Webforms - error

    Hi Experts,
    We have WPC Custom Webforms in the Home page and they are working fine for the past 6 monts.
    Suddenly, some of the users (random) are getting runtime exceptions on Production.
    The error log is as below and it looks like some CSS Classloader / WPC framework level issue.
    Any pointers will be hightly appreciated.
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Application name : com.sap.nw.pcc.xmleditor
    Component : pcd:com.sap.portal.system/pcc/rt_content/com.sap.portal.pcc/StagingAreaId/SAP/Portal/Portal/1354644894
    Component class : com.sap.portal.prt.component.CachablePortalComponent
    at com.sap.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:765)
    at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:245)
    at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
    at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:119)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.process(Executable.java:242)
    at com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.waitUntilIncludesDone(AsyncPortalComponentResponse.java:242)
    at com.sapportals.portal.pb.PageBuilder.includeAlliViews(PageBuilder.java:967)
    at com.sapportals.portal.pb.PageBuilder.doContent(PageBuilder.java:573)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:205)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:121)
    at com.sap.portal.prt.component.CachablePortalComponent.service(CachablePortalComponent.java:137)
    at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
    at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)
    at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)
    at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
    at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:119)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.process(Executable.java:242)
    at com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.waitUntilIncludesDone(AsyncPortalComponentResponse.java:242)
    at com.sapportals.portal.pb.PageBuilder.includeAlliViews(PageBuilder.java:967)
    at com.sapportals.portal.pb.PageBuilder.doContent(PageBuilder.java:573)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:205)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:121)
    at com.sap.portal.prt.component.CachablePortalComponent.service(CachablePortalComponent.java:137)
    at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
    at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)
    at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)
    at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
    at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
    at com.sap.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:206)
    at com.sapportals.portal.navigation.workAreaiView.doContent(workAreaiView.java:296)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:205)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:121)
    at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
    at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)
    at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)
    at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
    at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
    at com.sap.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:206)
    at com.sap.portal.prt.pom.PortalNode.service(PortalNode.java:588)
    at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:233)
    at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
    at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
    at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:520)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:201)
    at com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)
    at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:432)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
    at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
    at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
    at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: java.lang.NullPointerException: while trying to invoke the method com.sap.nw.pcc.kmfacade.css.ICssLoaderService.getCSSResources(java.lang.String) of an object loaded from local variable 'cssLoader'
    at com.sap.nw.pcc.ui.XmlEditorRenderer.includeCSS(XmlEditorRenderer.java:182)
    at com.sap.nw.pcc.ui.XmlEditorRenderer.doContent(XmlEditorRenderer.java:62)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:205)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:121)
    at com.sap.portal.prt.component.CachablePortalComponent.service(CachablePortalComponent.java:137)
    at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
    at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)
    at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)
    ... 92 more
    Regards,
    Ramesh.

    Hi Ramesh
    Were you able to fix this issue? I am facing exactly the same issue.
    Regards
    Sonal

  • Custom 404 Error page in Sharepoint Foundation 2013

    Hi all,
    How to point to the custom 404 error page in Share Point Foundation 2013. I have seen some links but not working for me. Please me let me know if you have any suggestion.
    Thanks.

    Can i create any page and pass the page url in it,like if i have created a page as custom404.aspx under pages library so do i need to do like this?
    $spsite = Get-SPSite "<http://sharepoint:1000/>"
    $spsite.FileNotFoundUrl = "<pages/custom404.aspx>"
    is this the correct way or i am doing incorrectly??
    please suggest

  • How can I set up a custom 404 error page on OSX Server?

    I moved my web site to a local server and changed the structure drastically.  Unfortunately I am getting hits for information that was on the old server which I haven't put back yet.  I'd like to set up a custom 404 Error Page to let people know what's up.  In server.app I can set up a 500 error page but not a 404 and when I tried hand coding it into the sites .conf file I really messed things up.  It took me a while to get that all corrected!
    Thanks for any advice,
    Bill W

    Found it!
    Under the web server Advanced Setting set "Allow overrides using .htaccess" then create an .htaccess file in the root directory with the line:
    ErrorDocument 404 notfounderror.html
    Use whatever HTML/PHP/etc. document you have created.

  • How do I create custom HTTP Error Pages for a Weblogic Server

    I need to be able to display custom HTTP error pages such as a 404 from my Weblogic
    Server when my web application is not deployed.
    Is this possible?
    I have seen some suggestions about putting something like:
    <error-page>
    <error-code>404</error-code>
    <location>Error404.jsp</location>
    </error-page>
    in the web.xml for my web application but I can't see how that would work since
    the web application would not be deployed. I need to set these messages at the
    server level.
    Any help would be appreciated!
    thanks

    Your CategoryAxis id="ha_ccm" uses categoryField="period", and this is the label for the your series (i.e. "Quarter 4/2010"). You cannot have multiple categoryFields for the CategoryAxis; it can only use one data field for the labels. You can use data tips and/or label functions to show the individual series' values on the columns.
    Also:
    Your labelField in the ColumnSeries are set to a ColumnSet name instead of a field name in your dataprovider.
    Font must be embedded if you set ColumnChart.showLabelVertically="true".

  • Custom tool error for COMexception: The report application server failed.

    hi there,
    i am using crystal reports for the last one year onwards, i don't get any errors till know. Yesterday when i modified some information in 40 reports. out of these reports 34 reports are successfully build, but for the remaining six reports the code is not generating.
    Custom tool error: "Code generator 'ReportCodeGenerator' failed.  Exception stack = CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: The Report Application Server failed
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
       at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath, String resourceNamespace)
       at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"
    i am not understanding why it is getting for me, Please help me

    Hello,
    Whoever wrote the CustomCodeGenerator will have to help you with this one. We know nothing about the underlying code they are using and therefore can't determine the cause.
    Appears the error is it can't even load the report so there is something wrong with the workings. Open the report again in CR Designer and Verify Database and then check the changes you did. Something is not right or the DB driver their application is using does not match with what you are using.
    Don

  • Custom 404 error page only works 75% of the time

    I have made custom HTTP error pages for my app and they work for Mozilla, Opera and Firefox but IE seems to have its own personal 404 error page.
    Anyone know how to make IE work and play well with others and display the custom 404 page like the other 3 browsers do? I did clear the IE cache, twice.
    The environment is Tomcat 5.0.19 (stand-alone, no IIS) running on Window Server 2003 Enterprise
    Thanks for your help!
    Will

    You got to love microsoft products huh. Microsoft has turned on its friendly error pages. Unfortunately, to fix this, you have to have your clients modified their browser settings. Inside the IE browser, do the following:
    1. From menu choose tools->internet options
    2. Choose the advanced tab
    3. Uncheck the checkbox that says "Show friendly HTTP error messages"
    That will do it for ya.

  • Custom HTTP error page

    How do I create custom HTTP error pages for WebLogic Server 6.1
              

    Refer to the following document:
              http://e-docs.bea.com/wls/docs61/webapp/components.html#101747
              Eric
              "Sejal" <[email protected]> wrote in message
              news:3bc1e18f$[email protected]..
              > How do I create custom HTTP error pages for WebLogic Server 6.1
              

  • FSCM Worklist - Customer Contact Error

    FSCM Worklist - Customer Contact Error
    When entering the Customer Contact and trying to save - getting Error
    Function Call failed; Could not find UDM_GOS_ATTCH_COMMIT
    Basis recently activated
    FIN_FSCM_CCD_INTEGRATION
    FIN_FSCM_CCD_INTEGRATION_3
    but not:
    FIN_FSCM_INTEGRATION
    Would this be the problem?
    Please advise
    Thanks
    Trevor

    Hi trevor did you get a solution for this error? If you did please share.
    Thanks,
    Rick

  • RT Logging Custom Device error

    I am trying to deploy the custom device RT Logging (Downloaded from NI site) to my cRIO 9024. But I am getting error while deployment.
    Can someone please help me out???
    Attachments:
    RT Logging Custom Device Error.JPG ‏185 KB

    Custom devices need to be compiled for the target they're deployed to, so unless they are specifically written for VxWorks, they're not going to work.  The custom device you're referring to (I assume it's from this page?) is just an example and not a full-featured custom device, and was not compiled or set up for VxWorks.
    However, NI VeriStand 2010 ships with a better RT data logger called the "Embedded Data :Logger".  Use this custom device instead since it has a lot more features and has both PharLap and VxWorks distributions.
    Devin K
    Systems Engineering - RTT & HIL

  • Customizing portal error pages using WPC seems not to work

    Hi,
    I am running a EP 7.01 system and have instaled the KMC-WPC component.
    My goal is to edit custom error pages. I have followed the help.sap.com
    guide, however i don't see any results. When i create a KM-document
    iview to a non-existing document, i stll get the default 404 error
    page. I have restarted the portal, but without effect. Am i missing something or is the error-page editor not meant for this kind of use? I have also tried to edit the web.xml file, but these errorpages are on a very global scale and not usefull for my purpose
    Bas

    Hussain,
    Yes, it is a KM document not found page
    regards,
    Bas

  • WPC - Custom Web Form - Cannot render container

    Hello!
    I've created custom web form for WPC (wpc_utg_sitelink) and gone through customizing provided in
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2041eb17-6001-2b10-b08d-b95ce55fa9b7&overridelayout=true]
    It looks fine at designtime.
    In runtime i get following:
    Cannot render container : Could not load stylesheet.com.sap.engine.lib.xml.util.
    NestedException: Error parsing query. -> java.lang.ArrayIndexOutOfBoundsException
    are there errors in my wpc_utg_sitelink.xsl file syntax?
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:wpc="com.sap.nw.wpc.km.service.linkmanager.XsltHelper">
    <xsl:output method="html"/>
    <xsl:template match="/">
    <span>
    <xsl:if test="starts-with(document/elements/element[@type='image'],'/')"></xsl:if>
    <h2>
    <a>
    <xsl:if test="string-length(document/elements/element[@type='itemlink']/@rid)!=0">
    <xsl:attribute name="href">
    <xsl:value-of select="wpc:getAccessLink(string(document/elements/element[@type='itemlink']/@rid))"/>
    </xsl:attribute>
    <xsl:if test="document/elements/element[@type='itemlink']/@targetnew='true'">
    <xsl:attribute name="target"> new </xsl:attribute>
    </xsl:if>
    </xsl:if>
    <xsl:value-of select="document/elements/element[@type='title']" disable-output-escaping="yes"/>
    </a>
    <xsl:if test="document/properties/property[@type='isnew']/@value)='true'">
    <span>New!</span>
    </xsl:if>
    </h2>
    <p>
    <xsl:value-of select="document/elements/element[@type='text']" disable-output-escaping="yes"/>
    </p>
    </span>
    </xsl:template>
    </xsl:stylesheet>
    Or may be some problems in customizing?
    Thanks!
    Edited by: Ivan O. Ivanov on Sep 21, 2009 5:15 PM

    solved!

  • WPC web form error...

    Hi all,
    I am new to WPC and i am trying to create sample  DropDownList wpc editor component that will be shown in the custom web form properties. When i try to open the custom web form i am getting the below error.
    Exception ID:11:29_01/10/09_0012_109903950
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
    Component : com.sap.nw.wpc.designtime.EditorTool
    Component class : com.sap.nw.wpc.editor.EditorTool
    User :******
         at
    Caused by: java.lang.NullPointerException
         at com.sap.nw.wpc.editor.EditorBean.updateDocumentFromContext(EditorBean.java:324)
         at com.sap.nw.wpc.editor.EditorBean.getPreview(EditorBean.java:600)
         at pagelet.editor._sapportalsjsp_editor.subDoContent(_sapportalsjsp_editor.java:1802)
         at pagelet.editor._sapportalsjsp_editor.doContent(_sapportalsjsp_editor.java:58)
         ... 43 more
    Please advise where i went wrong.
    Thanks in advance,
    Vasu

    Even I also having same problem. what ever u got the error message I am also getting it.
    I found this forum but no where i found the solution and thread is showing Answerd. could you please share the solution.

  • WPC - Custom Web Form: DOMException: Root Element is already present

    Hi experts,
    I'm trying to create a custom web form for my companies portal and I'm facing the following problem:
    I can create create articles with my new webform and everything is fine, but when the XSL Transformation is happing (eg. for viewing the content) i got following exception:
    Cannot render container : com.sap.engine.lib.xml.util.NestedException: org.w3c.dom.DOMException: Root Element is already present, cannot be appended as a child. -> org.w3c.dom.DOMException: Root Element is already present, cannot be appended as a child.
    I don't understand of which root element the parser is talking. Unfortunately I can't find any additional info to this.
    This is my Editor Document:
    <documenttype id="wpc_informatics_article" description="wpc_informatics_article" showpreview="true" showelementlist="true">
      <properties>
        <property id="name" description="xml.xlbl.name" type="inputfield" size="25" isrequired="true" isfilename="true" />
        <property id="createdBy" description="xml.xlbl.created_by" type="peoplepicker" size="25" isrequired="true"/>
        <property id="includeInRSS" description="xml.xckl.include_in_rss" type="checkbox" defaultvalue="false" property="wpc_wcm_rss"/>
        <property id="displayNewIcon" description="xml.xckl.display_new_icon" type="checkbox" defaultvalue="false" property="wpc_wcm_new"/>
      </properties>
      <elements> 
        <element id="heading1" description="xml.xlbl.heading1" type="inputfield" default="true" singleinstance="true" size="75" maxlength="75" nodelete="true"/>
        <element id="heading2" description="xml.xlbl.heading2" type="inputfield" size="50" default="true" />
        <element id="paragraph" description="xml.xlbl.paragraph" type="htmleditadvanced" default="true" />
        <element id="relatedLinks" description="xml.xlbl.related_links" type="wpclink" hastitle="true" />
      </elements>
    </documenttype>
    The created example content:
    <document document="wpc_informatics_article">
      <properties>
        <property type="name" prop_ns="http://sapportals.com/xmlns/cm" prop_name="displayname"/>
        <property type="createdBy">USER.R3_DATASOURCE.FAH</property>
        <property type="includeInRSS" prop_ns="wpc_wcm" prop_name="wpc_wcm_rss"/>
        <property type="displayNewIcon" prop_ns="wpc_wcm" prop_name="wpc_wcm_new"/>
      </properties>
      <elements>
        <element type="heading1">asdf</element>
        <element type="heading2">asdf</element>
        <element type="paragraph">adsfsadfsadfsadf</element>
      </elements>
      <relatedlinks/>
      <relatedfiles/>
    </document>
    and the xsl
    <?xml version="1.0"?>
    <!DOCTYPE stylesheet [
    <!ENTITY apos  "'" ><!-- replace &apos; with html escape character for ' -->
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wpc="com.sap.nw.wpc.km.service.editor.hslt.XsltHelperCore">
      <xsl:output method="html"/>
      <xsl:template match="/">
        <h1 id="informatics_h1"> <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='heading1']" /> </h1>
        <h2 id="informatics_h2"> <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='heading2']" /> </h2>
        <xsl:for-each select="document/elements/element">
          <xsl:if test="@type='paragraph'">
            <xsl:value-of disable-output-escaping="yes" select="current()" />
          </xsl:if>
          <xsl:if test="@type='relatedLinks'">
            <div id="informatics_related_links"> Siehe auch: <a>
              <xsl:attribute name="href"> <xsl:value-of disable-output-escaping="yes" select="wpc:getAccessLink(string(@rid), string(/document/@locale))"/> </xsl:attribute>
              <xsl:value-of disable-output-escaping="yes" select="@heading1"/> </a> </div>
          </xsl:if>
        </xsl:for-each>
      </xsl:template>
    </xsl:stylesheet>
    maybe someone of you can help me with this! thank you in advance!
    Harald

    I found a solution for this.
    It seems that all of the XSL Transformation has to be covered by a div tag with css classes featurebox clearfixleft.
    <?xml version="1.0"?>
    <!DOCTYPE stylesheet [
    <!ENTITY apos  "'" ><!-- replace &apos; with html escape character for ' -->
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                         xmlns:wpc="com.sap.nw.wpc.km.service.linkmanager.XsltHelper">
        <xsl:output method="html"/>
        <xsl:template match="/">
         <div class="featurebox clearfixleft">
           <h2 id="informatics_h1">
                   <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='title']" />
         </h2>
         <xsl:for-each select="document/elements/element">
                 <xsl:if test="@type='heading1'">
                        <h2 id="informatics_h2">
                            <xsl:value-of disable-output-escaping="yes" select="current()" />
                        </h2>
                 </xsl:if>
                 <xsl:if test="@type='paragraph'">
                     <p><xsl:value-of disable-output-escaping="yes" select="current()" /></p>
                 </xsl:if>
          </xsl:for-each>
         </div>
      </xsl:template>
    </xsl:stylesheet>
    Edited by: Harald Falzberger on Mar 1, 2011 11:06 AM

  • Custom Report Erroring when using All as parameter

    Hi All,
    I am facing a problem in running custom report.
    => DB Server Info
    RDBMS : 11.2.0.2.0
    Oracle Applications : 12.1.3
    I am getting following error.
    REP-1401: 'afterpform': Fatal PL/SQL error occurred.
    ORA-06502: PL/SQL: numeric or value error
    custom report two parameters one is date parameter and name parameter
    date parameter is using as fnd_date.canonical_to_date(:P_EFFECTIVE_DATE) in queries.
    if I give name parameter for individual, then it works fine.
    if I give name parameter as "All", then its erroring. I tried it in my best way, but its not working.
    variable data length increased though its not working, can any one help me on this please....
    Here is the Afterpform code
    function AfterPForm return boolean is
    lName VARCHAR2(5000); -- its changed from lName varchar2(50);
    begin
    IF :P_NAME <> 'All' THEN
    lName:= 'AND name =:P_NAME';
    ELSE
    lName:='AND name in                                                             (select name from <******>
              order by name
    END IF;     
    :P_Where_Clause := lName;
    return (TRUE);
    end;
    Thanks for all your help so far.
    Ram.
    Edited by: user8822881 on Feb 9, 2012 10:43 AM

    excuse i understood that you use All as parameter name
    ORA 6502 is when you assign a char to a number or when assign a value which length is greater than the variable length
    what's the dimension of p_where_clause for example?
    you can trace with srw.message
    --- <Code>
    function AfterPForm return boolean is
    lName VARCHAR2(5000); -- its changed from lName varchar2(50);
    begin
    srw.message(1,'step 1');
    IF :P_NAME = 'All' THEN
    srw.message(2,'step 2');
    lName:='AND name in (select name from <table>
    order by name
    srw.message(3,'step 3');
    ELSE
    srw.message(4,'step 4');
    lName:= 'AND name =:P_NAME';
    srw.message(5,'step 5');
    END IF;
    srw.message(6,'step 6');
    :P_Where_Clause := lName;
    srw.message(7,'step 7');
    return (TRUE);
    end;
    ---</Code>
    i think your query is not good
    for example
    lName:= 'AND name =:P_NAME';
    when instance the query the query search this condition but no use the value of p_name parameter
    write
    lName:= 'AND name = '||''''||:P_NAME||''''; then :p_name take the value

Maybe you are looking for

  • N95 8GB TV out audio in?

    hi , Can I ,when i connect thet tv out cable,on my N95 8GB so that the audio is still on my phone? video signal is on the tv screen It happend only once and i cannot find the right profil settings any more .even there is no info to do this .but it di

  • How to manipulate arrays using case statements and boolean conditions?

    In the vi that is attached I am trying to compare two values in two different arrays and delete the value that is equal to zero.  The values of each array are rounded to the closest integer.  Then I attempted to apply the ">0" boolean as the conditio

  • Undeploying EARs from Netweaver 7.1 SP5

    Hi there, We are running into troubles here because we need to deploy an ear that was already deployed in the application server. Is there a (simple) was to completely undeploy an EAR in Netweaver 7.1 SP5. I come from a Glassfish/Jboss world where un

  • Airport connectivity issue

    Not sure if this is the best place for this, but I'm having an odd issue. My airport seems stuck on a set IPv4 address. Here's what happened. I'm on the road, yesterday I connect wirelessly in an airport (a physical airport, you know, with airplanes

  • INSTALLING FLASH PLAYER 11 ACTIVEX

    EVEN THO I'VE IONSTALLED THE LATEST VERSION OF FLASH PLAYER - IT WILL NOT ALLOW ME TO WATCH VIDEOS OR PLAY GAMES ON FACEBOOK - STILL GIVES MESSAGE TO UPDATE TO LATEST VERSION OF FLASH PLAYER.