ParserException: XMLParser: Prefix 'xsl' is not mapped to a namespace
Hi
although I do not think this is an XI problem.. I hope that somebody with more XSLT experience that I might be able to help.
I have a rather simple XSLT that is used to convert an EXCEL XML document into another XML format. The XSL that I have worked when I tested it via standalone SAXON or MSXML transformation.
But using the SAP product it gives me the error Prefix 'xsl' is not mapped to a namespace.
Here is the top part of the XSL
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:sp="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:of="urn:schemas-microsoft-com:office:office">
<xsl:output method = "xml" version="1.0" encoding="ISO-8859-1" omit-xml-declaration="no" standalone="no" indent="yes" />
<xsl:template match="/">
<dvabatch>
<xsl:apply-templates select = "//of:DocumentProperties" />
</dvabatch>
</xsl:template>
.... and so on.....
and the top part of the XML source
<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<Author>Peter Munt</Author>
<LastAuthor>muntp</LastAuthor>
<LastPrinted>2006-01-30T23:53:27Z</LastPrinted>
<Created>2003-02-06T18:19:41Z</Created>
<LastSaved>2006-03-01T03:59:11Z</LastSaved>
<Company>DVA</Company>
<Version>10.2625</Version>
</DocumentProperties>
<CustomDocum ....
..... and so on .....
Hi Peter,
just for clarification:
You zipped the XSL File and imported it into a Mapping Archive, then assigned the XSL Mapping to an interface mapping and receive the error in the Message Monitoring?
Is that the case?
regards,
Peter
Similar Messages
-
ParserException: XMLParser: Prefix 'c' is not mapped to a namespace
Hello and thanks in advance for any help. I am trying to deploy a war (that worked with Tomcat 4.1) on SAP Web Application Server.
In this war I have a JSP that says
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/products/JSP/Page"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:trx="http://www.highdeal.com/taglib">
<jsp:directive.include file="jspf/doctype.jspf"/>
<html>
<jsp:directive.include file="jspf/Imports.jspf"/>
<jsp:include page="include/Variables.jsp" flush="true" />
<head>
<title><c:out value="$"/></title>
<jsp:directive.include file="jspf/Style.jspf"/>
</head>
In my web.xml, I have:
<taglib>
<taglib-uri>http://www.highdeal.com/taglib</taglib-uri>
<taglib-location>WEB-INF/trx.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>WEB-INF/c.tld</taglib-location>
</taglib>
I am becoming crazy because of the exception I keep having in the logfile:
#1.5#0013CEDA9E4F00380000000800000DDC00040F1A970A7F6A#1142506784439#com.sap.engine.services.servlets_jsp.server.jsp.JSPParser#sap.com/csrui.war#com.sap.engine.services.servlets_jsp.server.jsp.JSPParser#Guest#2####f9b076e0b4db11da96df0013ceda9e4f#SAPEngine_Application_Thread[impl:3]_7##0#0#Error#1#/System/Server#Plain###Runtime error in compiling of the JSP file <D:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/csrui.war/servlet_jsp/csrui/root/WEB-INF/jsp/Logon.jsp> ! The error is: TagLibValidator returns error(s) for taglib ( http://java.sun.com/jstl/core ):
com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'c' is not mapped to a namespace(:main:, row:818, col:1)(:main:, row=818, col=1) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'c' is not mapped to a namespace(:main:, row:818, col:1)
#1.5#0013CEDA9E4F00380000000900000DDC00040F1A970A834A#1142506784439#com.sap.engine.services.servlets_jsp.Deploy#sap.com/csrui.war#com.sap.engine.services.servlets_jsp.Deploy#Guest#2####f9b076e0b4db11da96df0013ceda9e4f#SAPEngine_Application_Thread[impl:3]_7##0#0#Error##Plain###Runtime error in compiling of the JSP file <D:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/csrui.war/servlet_jsp/csrui/root/WEB-INF/jsp/Logon.jsp> ! The error is: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.ParseException: TagLibValidator returns error(s) for taglib ( http://java.sun.com/jstl/core ):
com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'c' is not mapped to a namespace(:main:, row:818, col:1)(:main:, row=818, col=1) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'c' is not mapped to a namespace(:main:, row:818, col:1)
at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.validate(JSPParser.java:243)
at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.initParser(JSPParser.java:348)
at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:105)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.getClassName(JSPServlet.java:238)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.compileAndGetClassName(JSPServlet.java:428)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:346)
at com.highdeal.wui.base.WForwardFactory.forwardPage(WForwardFactory.java:89)
at com.highdeal.wui.base.WForwardFactory.forward(WForwardFactory.java:128)
at com.highdeal.wui.base.HighdealSession.forward(HighdealSession.java:245)
at com.highdeal.wui.base.ControllerServlet.performAction(ControllerServlet.java:568)
at com.highdeal.wui.base.ControllerServlet.perform(ControllerServlet.java:913)
at com.highdeal.wui.base.ControllerServlet.doPost(ControllerServlet.java:482)
at com.highdeal.wui.base.ControllerServlet.doGet(ControllerServlet.java:476)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
What am I doing wrong here??
TangiHi Tangi,
A small mistake in your web.xml
<taglib>
<taglib-uri>http://www.highdeal.com/taglib</taglib-uri>
<taglib-location><b>/</b>WEB-INF/trx.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location><b>/</b>WEB-INF/c.tld</taglib-location>
</taglib>
You have missed a / before WEB-INF.
Also, the order of entries in web.xml matters. Refer <a href="http://www.pchighway.com/helpdesk/index.php?page=index_v2&id=1694&c=135">here</a> for more info about JSTL.
Hope this solve your problem.
Regards,
Uma -
Prefix is not mapped to a namespace
Hello All:
I have a incoming XML with ns0 name space. I had to anticipate it so I put in the declaration xmlns:ns0 = "http://XXXX-myxml.com" in the xsl:stylesheet.
But when I run this scenario. It throw exception at run time. With below error message
XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.utilities.UtilException: UTE001 Nested exception: javax.xml.transform.TransformerConfigurationException: Could not load stylesheet.com.sap.engine.lib.xml.util.NestedException: Could not load XSLWhen. Stylesheet: null, element: <xsl:when xmlns:xsl="http://www.w3.org/1999/XSL/Transform" test="$msg/ns0:PriceList">PriceList</xsl:when> -> com.sap.engine.lib.xml.util.NestedException: Prefix not mapped: ns0 -> java.lang.Exception: XMLParser: Prefix 'ns0' is not mapped to a namespace
Thank You!Hi Bo,
please define all namespaces in the INBOUND Definition (INBOUND-CHANNEL) of your scenario.
This is the only way to replicate the namespaces automatically into all xslt files.
Manual changes within your xslt files will be overwritten.
Best regards
Bastian
P.S.: please reactivate your scenario after changing the INBOUND definition. -
XSLT-Mapping Exception: Prefix not mapped:
Hi all,
I try to make a mapping using XSLT and get the exception: Prefix not mapped: ns0.
I wrote a simple xslt-script:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns1="http://me.home.com">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="//XIFCollection">
<Start>
<xsl:for-each select="ns1:XIFTest">
<Found>
<xsl:number format="1"/>
</Found>
</xsl:for-each>
</Start>
</xsl:template>
</xsl:stylesheet>
Using this input XML:
<?xml version="1.0" encoding="UTF-8"?>
<XIFCollection >
<ns0:XIFTest xmlns:ns0="http://me.home.com">
<IFControl>
<MeldungsId>1</MeldungsId>
</IFControl>
<XTest>
</XTest>
</ns0:XIFTest>
<ns0:XIFTest xmlns:ns0="http://me.home.com">
<IFControl>
<MeldungsId>2</MeldungsId>
</IFControl>
<XTest>
</XTest>
</ns0:XIFTest>
</XIFCollection>
In XML-Spy I get the following output:
<?xml version="1.0" encoding="UTF-8"?>
<Start xmlns:ns1="http://me.home.com">
<Found>1</Found>
<Found>2</Found>
</Start>
What I expected.
But using XI or the XML-Toolkit XI30xslt I get the exception:
java.lang.Exception: XMLParser: Prefix 'ns0' is not mapped to a namespace.
I tried everything and searched all dokumentation but have no idea.
Anyone with an idea?
ThanksHi,
you need to chage as Udo said
but also the other ns0 one:
check this:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://me.home.com">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="//XIFCollection">
<Start>
<xsl:for-each select="ns0:XIFTest">
<Found>
<xsl:number format="1"/>
</Found>
</xsl:for-each>
</Start>
</xsl:template>
</xsl:stylesheet>
BTW
it works in Stylus Studio now
Regards,
michal -
XSLT Mapping: Namespace for prefix 'ns0' has not been declared
Hello, I am working on a synchronous SOAP call and having some trouble with the response message. The web service has its own namespace and I am trying to convert this to my custom data type in PI. PI wants the message to be in format of having ns0 prefix and namespace like we have defined (http://foo for example).
I have an XSLT mapping (see below) which works fine with my test response payload (pulled from SXMB_MONI source) on this online XSLT test site:
http://www.freeformatter.com/xsl-transformer.html
However when I import this archive to PI and test with operation mapping it always says "Namespace for prefix 'ns0' has not been declared."
This is very confusing because when I test it online, I see both prefix and namespace declaration perfectly. Is there a way to see the results in the PI test tool? After this XSLT java error it doesn't give me the output even in Trace Level All mode.
Please advise on this issue or if you know an easier way (such as altering my datatype/message type to match the inbound SOAP message). I tried working with the 3rd party WSDL but the response message types show a different root level node than what PI is receiving so I gave up to make my own matching datatype. I just have to solve this last inbound namespace issue and should be finished.
FYI I have refreshed all PI caches and activated all objects.
Thanks for your ideas!
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ns0="http://foo"
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="/*">
<xsl:element name="ns0:{local-name()}">
<xsl:apply-templates select="@* | node()" />
</xsl:element>
</xsl:template>
<xsl:template match="/">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@* | node()" />
</xsl:element>
</xsl:template>
</xsl:stylesheet>Some additional info, here is an example payload which goes through the XSLT mapping perfectly, but in PI I get the error about missing ns0 declaration.
XML input:
<bar xmlns='http://irrelevantnamespace'
xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<foo/>
</bar>
XSLT mapped output using test tool and XSL above:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:bar xmlns:ns0="http://foo">
<foo />
</ns0:bar> -
Hi,
Can someone Please help with the error I get on the Orchestration.
Error:
xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'Smol.OE.ReturnEntry.OEProcessor.Orchs.ReturnEntryProcessorV1_0(7c00efb5-0fca-261d-3401-1a0673941aa2)'.
The service instance will remain suspended until administratively resumed or terminated.
If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
InstanceId: c8f2ab64-2151-4eba-b928-7da242765ec8
Shape name: ConstructMessage_CrmUpdateReturn
ShapeId: cf286d00-eb8c-4f0d-a895-9ad1efd2c856
Exception thrown from: segment 1, progress 21
Inner exception: Error encountered while executing the transform Smol.OE.ReturnEntry.MsCrm2011.Maps.Map_SchemaOEReturnsV1_0_To_SchemaCrmReturnEntryUpdatesV1_0. Error:Unable to create the transform..
Exception type: XTransformationFailureException
Source: Microsoft.XLANGs.Engine
Target Site: Void ApplyTransform(System.Type, System.Object[], System.Object[])
The following is a stack trace that identifies the location where the exception occured
at Microsoft.XLANGs.Core.Service.ApplyTransform(Type mapRef, Object[] outParams, Object[] inParams)
at Smol.OE.ReturnEntry.OEProcessor.Orchs.ReturnEntryProcessorV1_0.segment1(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
Additional error information:
Prefix 's4' is not defined.
Exception type: XslLoadException
Source: System.Xml
Target Site: System.CodeDom.Compiler.CompilerResults LoadInternal(System.Object, System.Xml.Xsl.XsltSettings, System.Xml.XmlResolver)
The following is a stack trace that identifies the location where the exception occured
at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
at Microsoft.XLANGs.BaseTypes.CompiledXsltWrapperTransform..ctor(String xslt)
at Microsoft.XLANGs.BaseTypes.TransformBase.get_Transform()
at Microsoft.XLANGs.RuntimeTypes.TransformMetaData..ctor(Type transformBaseType)
at Microsoft.XLANGs.RuntimeTypes.TransformMetaData._creator(Type t)
at Microsoft.XLANGs.RuntimeTypes.MetadataCache._slowFor(Type t)
at Microsoft.XLANGs.RuntimeTypes.MetadataCache.For(Type t)
at Microsoft.XLANGs.RuntimeTypes.TransformMetaData.For(Type t)
at Microsoft.XLANGs.Core.Service.ApplyTransform(Type mapRef, Object[] outParams, Object[] inParams)
xsl Map:
<?xml version="1.0" encoding="UTF-16"
?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var s0 userCSharp"
version="1.0" xmlns:s0="http://Smol.Common.Canonicals.OEReturns.SchemaOEReturnsV1.0"
xmlns:ns0="http://Smol.OE.ReturnEntry.MsCrm2011.Schemas.SchemaCrmReturnEntryUpdatesV1" xmlns:userCSharp="http://schemas.microsoft.com/BizTalk/2003/userCSharp">
<xsl:output
omit-xml-declaration="yes" method="xml"
version="1.0" />
<xsl:template match="/">
<xsl:apply-templates
select="/s0:Returns" />
</xsl:template>
<xsl:template match="/s0:Returns">
<xsl:variable
name="var:v1" select=""new_orderextractmetadata""
/>
<xsl:variable
name="var:v2" select=""new_txt_clientordernumber""
/>
<xsl:variable
name="var:v3" select=""new_orderextractmetadatadetail""
/>
<xsl:variable
name="var:v4" select=""new_txt_filenumber""
/>
<xsl:variable
name="var:v5" select=""new_opt_status""
/>
<xsl:variable
name="var:v6" select=""100000000""
/>
<xsl:variable
name="var:v7" select=""new_opt_statusname""
/>
<xsl:variable
name="var:v8" select=""Extracted""
/>
<ns0:CrmReturnEntryUpdates>
<ns0:MetaData>
<xsl:attribute name="ID">
<xsl:value-of
select="s0:MetaData/s0:MetaDataID/text()" />
</xsl:attribute>
<xsl:attribute name="EntityName">
<xsl:value-of
select="$var:v1" />
</xsl:attribute>
<xsl:call-template name="MyXsltConcatTemplate">
<xsl:with-param
name="param1" select="string($var:v2)"
/>
</xsl:call-template>
</ns0:MetaData>
<ns0:MetaDataDetail>
<xsl:attribute name="ID">
<xsl:value-of
select="s0:MetaData/s0:MetaDataDetailID/text()" />
</xsl:attribute>
<xsl:attribute name="EntityName">
<xsl:value-of
select="$var:v3" />
</xsl:attribute>
<FileNumber>
<xsl:attribute name="crmField">
<xsl:value-of
select="$var:v4" />
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of
select="s0:MetaData/s0:FileNumber/text()" />
</xsl:attribute>
</FileNumber>
<Status>
<xsl:attribute name="crmField">
<xsl:value-of
select="$var:v5" />
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of
select="$var:v6" />
</xsl:attribute>
</Status>
<StatusName>
<xsl:attribute name="crmField">
<xsl:value-of
select="$var:v7" />
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of
select="$var:v8" />
</xsl:attribute>
</StatusName>
</ns0:MetaDataDetail>
<ns0:Quotes>
<xsl:for-each select="s0:Return">
<xsl:for-each select="s0:Quote">
<xsl:variable
name="var:v9" select=""quote""
/>
<xsl:variable
name="var:v10" select=""new_txt_ordernumber""
/>
<xsl:variable
name="var:v11" select=""new_txt_extractfilename""
/>
<xsl:variable
name="var:v12" select=""new_txtm_extractfilenames""
/>
<xsl:variable
name="var:v13" select="userCSharp:DateCurrentDateTime()"
/>
<xsl:variable
name="var:v14" select=""new_opt_status""
/>
<xsl:variable
name="var:v15" select=""100000005""
/>
<xsl:variable
name="var:v16" select=""new_opt_statusname""
/>
<xsl:variable
name="var:v17" select=""Extracted""
/>
<ns0:Quote>
<xsl:attribute name="ID">
<xsl:value-of
select="s0:QuoteHeader/s0:QuoteID/text()" />
</xsl:attribute>
<xsl:attribute name="EntityName">
<xsl:value-of
select="$var:v9" />
</xsl:attribute>
<SmollanOrderNo>
<xsl:attribute name="crmField">
<xsl:value-of
select="$var:v10" />
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of
select="s0:QuoteHeader/s0:CurrOrdNo/text()" />
</xsl:attribute>
</SmollanOrderNo>
<ExtractFileName>
<xsl:attribute name="crmField">
<xsl:value-of
select="$var:v11" />
</xsl:attribute>
<xsl:if test="../../@OutFileName">
<xsl:attribute name="value">
<xsl:value-of
select="../../@OutFileName" />
</xsl:attribute>
</xsl:if>
</ExtractFileName>
<ExtractDateTime>
<xsl:attribute name="crmField">
<xsl:value-of
select="$var:v12" />
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of
select="$var:v13" />
</xsl:attribute>
</ExtractDateTime>
<Status>
<xsl:attribute name="crmField">
<xsl:value-of
select="$var:v14" />
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of
select="$var:v15" />
</xsl:attribute>
</Status>
<StatusName>
<xsl:attribute name="crmField">
<xsl:value-of
select="$var:v16" />
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of
select="$var:v17" />
</xsl:attribute>
</StatusName>
</ns0:Quote>
</xsl:for-each>
</xsl:for-each>
</ns0:Quotes>
</ns0:CrmReturnEntryUpdates>
</xsl:template>
<msxsl:script language="C#" implements-prefix="userCSharp">
<![CDATA[
public string DateCurrentDateTime()
DateTime dt = DateTime.Now;
string curdate = dt.ToString("yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture);
string curtime = dt.ToString("T", System.Globalization.CultureInfo.InvariantCulture);
string retval = curdate + "T" + curtime;
return retval;
]]>
</msxsl:script>
<xsl:template name="MyXsltConcatTemplate">
<xsl:param
name="param1" />
<xsl:variable
name="lastOrderNo" select="/s4:Orders/s4:Order[position()=last()]/s4:Quote[position()=last()]/s3:Header[position()=last()]/s3:SmollanOrderNo/text()"
/>
<LastOrderNumber
crmField="{$param1}" value="{$lastOrderNo}"
xmlns="http://Smol.OE.OrderEntry.MsCrm2011.Schemas.SchemaCrmOrderEntryUpdateV1.0" />
</xsl:template>
</xsl:stylesheet>the error is very clear.
you have not declared the namespace that corresponds to S4 in that xsl.
for example you have declared for s0 like below.
xmlns:s0="http://Smol.Common.Canonicals.OEReturns.SchemaOEReturnsV1.0"
but the same is missing for s4.
i see that you have used s4 prefix for Orders node.
so open your input schema, click on Orders node, goto its properties and get the namespace.
open your xsl file and add the namespace declaration like below
xmlns:s4="namesapce here"
Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
I can not map field after changing data source location
Hi
I have a small problem that I got a report file and database from my customer, after that I setup database, open the file and change data source to my setting. but some filed can not map. The field mapping widonw does not display all field in the table. Of course I have checked the missing fields are existing in the table.
OS:Windows7
DB:Oracle11
CR:XI Release 2
Does anyone have an idea?hi,
In Map Fields window, there is an option "Match Type".
Please Unchek that option, so that you will be able to see all the fields from that table.
Also, while mapping please verify the datatypes of source and target fields.
Regards,
Vamsee -
All fields are not mapped in transformation 0IC_C03 to 2LIS_03_BF_TR
I have replicated BI7 data sources of 2lis_03_BF,BX & UM from ECC. All the infosources are BI7 infosources.After installing the BI Content for 0IC_C03, infosource 2LIS_03_BF_TR is not active.When I am trying to activate the transformation it is showing a error in START ROUTINE & also all fields are not mapped.
Please suggest a solution.
Thanx in advance.
Edited by: Aritra on Nov 28, 2011 11:37 AMHi,
i think you have done some modification manually(either added something and deleted something in transformation) thats why code isn't maching with standard sorce package.
so to resolve this error just remove changes you manually did. or remove that code and again create start routine and paste the code which u need.
Thanks & Regards,
NIKHIL -
0GR_VAL_PD KF has not mapped with source in 0Pur_C01 but value comes
HI All
I have problem with 0GR_VAL_PD kf in 0PUR_C01 cube. 0GR_VAL_PD KF has not mapped with source in 0Pur_C01 but in report level, value is coming for purchase organisation,material group .
But GR value as at posting date (0GR_VAL_PD)value not coming for particular material group or purch. org. but some days before, values were coming for particular material group or purch. org..
so need your help.
Thanks n Regards,
Gaurav Sekhri
Edited by: gaurav sekhri on Aug 18, 2010 11:41 AM
Edited by: gaurav sekhri on Aug 18, 2010 11:43 AMHi Susan
Which datasource you are using at present. Normally 0PUR_C01 gets loaded from 2LIS_02_ITM and 2LIS_02_SCL. The keyfigure that you have mentioned will come from 2LIS_02_SCL with the code that you have written.
The code that you have written should work. Please check if the code is in the transformation from 2LIS_02_SCL.
Share the details on why do you think the solution didn't work.
Regards
Karthik -
DisplayAuthor managed property does not map to any crawl property, why?
I just discovered the out of box - DisplayAuthor managed property does not map to any crawl property, why is that? but it is still working fine when using this property as a refiner.....how does this work?
Hi,
The DisplayAuthor managed property is different. It is multi-valued but has no crawled properties mapped to it. However, it represents multiple authors for a document. There is the author that is stored with the properties of a document such
as a pdf this is the original creator of the document, and then there is the SharePoint author of the document which is the the person who uploaded the document. So basically you can search on both using the DisplayAuthor.
Besides, here is a similar post, you can use as a reference:
https://social.msdn.microsoft.com/Forums/office/en-US/bdf5d8dc-0511-492c-8f51-9cd541cf70bd/what-does-the-displayauthor-value-in-the-search-refinement-json-object-represent?forum=sharepointsearch
Best Regards,
Lisa Chen
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Lisa Chen
TechNet Community Support -
Some offerings are missing user input, some are not mapping to activites
Seemingly out of the blue my system has stopped mapping request offering answers to (manual) activities (mapping to the SR itself works), neither OotB properties or custom properties. This only happens when submitting them from the portal (ALL
offerings)
Also, some requests are even missing user input (and obviously no mapping is possible).
This issue seem to affect all users. Even admins
I have tried restarting the web content server and also the website on the sharepoint server. I have also tried creating a brand new template and offering in a brand new MP.
I have been able to track down a ca. point in time this issue arose, but not found anything in logs anywhere (except SMPortalTrace). Checked web content server event log and website log, SQL log, event log on both management servers.
I have checked the SMPortalTrace.log and for every request submitted I get an error (not visible in the portal) - some is in danish, so I have translated at the best of my ability:
Failed to parse the description with links., System.ArgumentNullException: [ArgumentNull_Generic]
Ressourcestrings for troubleshooting is not available. Keys and arguments often contains enough information to start the troubleshooting a problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.00&File=mscorlib.dll&Key=ArgumentNull_Generic
ParameterName: input
At System.Text.RegularExpressions.Regex.Matches (String input)
At Microsoft.Enterprisemanagement.ServiceManager.Portal.RequestOfferingSilverlightModule.UriParser.ParseDescription(string description)
The system is SCSM 2012 R2 UR2 (except the SP part of the portal)
Update:
I found that if the user input is missing even from the SR then the error does not present itself in the SMPortalTrace.log, only if the user input goes through (but is not mapped to activities).
http://codebeaver.blogspot.dk/The issue seems to be related to a syntactically valid type projection in the Service Request form (customized) - I added a component to the existing projection. As the template that a request offering is based on has a reference to this projection I guess
the code that creates the Service Request submitted from the portal somehow ignores the "unwanted" type projection component, and instead of not submitting the request it continues but is unable to map into child activities. I will try and reproduce
this in more detail.
Solution: Revert to original type projection in the SR form and everything went back to normal.
http://codebeaver.blogspot.dk/ -
Dates are not mapped as the Date data type in Universe created on Infoset
Hi,
When i try to create the universe on top of Infoset query, the date fields present as the variables in SAP BI Query are not mapped as date data type in Universe, instead they are considered as Characters, hence the prompts related to those variables are coming s List of values instead of Calendar in WebI.
Can any one pls help me to find the solution on how to map date variables as calendar in Webi Prompts.(For SAP BI Queries created on Infoset)
Edited by: Nisha Makhija on Jul 20, 2009 5:59 PMHi Ingo,
Thanks for your response!!
The I Query is built on Top of BW MultiProvider and the InfoObject is of Type DATS.
Actually our Modeling on the BI is as follows :
DSOs> Infoset>Multiprovider->BI query>Universe.
Since we were not able to get the prompts as Calander so We tried Debugging on different Data targets to find the root cause. Please find our observations as follows:
When I tested the same date infoobject(of Type DATS) by creating a BI Query on top of DSO, Infocube & Multiprovider ,the Prompts are working fine as a calander in WEBI Report.
But when the BI Query is built on Infoset data target, In WEBI Report I am getting list of values rather a Calender prompt .
I tested in the Universe that field is appearing as Character instead of Date.
Please guide to resolve this issue.
Thanks,
Nisha. -
DG Observer triggering SIGSEGV Address not mapped to object errors in alert log
Hi,
I've got a Data Guard configuration using two 11.2.0.3 single instance databases. The configuration has been configured for automatic failover and I have an observer running on a separate box.
This fast-start failover configuration has been in place for about a month and in the last week, numerous SEGSEGV (address not mapped to object) errors are reported in the alert log. This is happening quite frequently (every 4/5 minutes or so).
The corresponding trace files show the process triggering the error coming from the observer.
Has anyone experienced this problem? I'm at my wits end trying to figure out how to fix the configuration to eliminate this error.
I must also note that even though this error is occurring a lot, it doesn't seem to be affecting any of the database functionality.
Help?
Thanks in advance.
BethHi.. The following is the alert log message, the traced file generated, and the current values of the data guard configuration. In addition, as part of my research, I attempted to apply patch 12615660 which did not take care of the issue. I also set the inbound_connection_timeout parameter to 0 and that didn't help either. I'm still researching but any pointer in the right direction is very much appreciated.
Error in Alert Log
Thu Apr 09 10:28:59 2015
Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x9] [PC:0x85CE503, nstimexp()+71] [flags: 0x0, count: 1]
Errors in file /u01/app/oracle/diag/rdbms/<db_unq_name>/<SID>/trace/<SID>_ora_29902.trc (incident=69298):
ORA-07445: exception encountered: core dump [nstimexp()+71] [SIGSEGV] [ADDR:0x9] [PC:0x85CE503] [Address not mapped to object] []
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
Thu Apr 09 10:29:02 2015
Sweep [inc][69298]: completed
Trace file:
Trace file /u01/app/oracle/diag/rdbms/<db_unq_name>/<SID>/trace/<SID>_ora_29902.trc
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning and Oracle Label Security options
ORACLE_HOME = /u01/app/oracle/product/11.2.0.3/dbhome_1
System name: Linux
Node name: <host name>
Release: 2.6.32-431.17.1.el6.x86_64
Version: #1 SMP Wed May 7 14:14:17 CDT 2014
Machine: x86_64
Instance name: <SID>
Redo thread mounted by this instance: 1
Oracle process number: 19
Unix process pid: 29902, image: oracle@<host name>
*** 2015-04-09 10:28:59.966
*** SESSION ID:(416.127) 2015-04-09 10:28:59.966
*** CLIENT ID:() 2015-04-09 10:28:59.966
*** SERVICE NAME:(<db_unq_name>) 2015-04-09 10:28:59.966
*** MODULE NAME:(dgmgrl@<observer host> (TNS V1-V3)) 2015-04-09 10:28:59.966
*** ACTION NAME:() 2015-04-09 10:28:59.966
Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x9] [PC:0x85CE503, nstimexp()+71] [flags: 0x0, count: 1]
DDE: Problem Key 'ORA 7445 [nstimexp()+71]' was flood controlled (0x6) (incident: 69298)
ORA-07445: exception encountered: core dump [nstimexp()+71] [SIGSEGV] [ADDR:0x9] [PC:0x85CE503] [Address not mapped to object] []
ssexhd: crashing the process...
Shadow_Core_Dump = PARTIAL
ksdbgcra: writing core file to directory '/u01/app/oracle/diag/rdbms/<db_unq_name>/<SID>/cdump'
Data Guard Configuration
DGMGRL> show configuration verbose;
Configuration - dg_config
Protection Mode: MaxPerformance
Databases:
dbprim - Primary database
dbstby - (*) Physical standby database
(*) Fast-Start Failover target
Properties:
FastStartFailoverThreshold = '30'
OperationTimeout = '30'
FastStartFailoverLagLimit = '180'
CommunicationTimeout = '180'
FastStartFailoverAutoReinstate = 'TRUE'
FastStartFailoverPmyShutdown = 'TRUE'
BystandersFollowRoleChange = 'ALL'
Fast-Start Failover: ENABLED
Threshold: 30 seconds
Target: dbstby
Observer: observer_host
Lag Limit: 180 seconds
Shutdown Primary: TRUE
Auto-reinstate: TRUE
Configuration Status:
SUCCESS
DGMGRL> show database verbose dbprim
Database - dbprim
Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
DG_CONFIG
Properties:
DGConnectIdentifier = 'dbprim'
ObserverConnectIdentifier = ''
LogXptMode = 'ASYNC'
DelayMins = '0'
Binding = 'optional'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '30'
RedoCompression = 'DISABLE'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'MANUAL'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '4'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = ''
LogFileNameConvert = ''
FastStartFailoverTarget = 'dbstby'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName = ‘<sid>’
StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<db host name>)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=<service_name>)(INSTANCE_NAME=<sid>)(SERVER=DEDICATED)))'
StandbyArchiveLocation = 'USE_DB_RECOVERY_FILE_DEST'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.dbf'
TopWaitEvents = '(monitor)'
Database Status:
SUCCESS
DGMGRL> show database verbose dbstby
Database - dbstby
Role: PHYSICAL STANDBY
Intended State: APPLY-ON
Transport Lag: 0 seconds
Apply Lag: 0 seconds
Real Time Query: ON
Instance(s):
DG_CONFIG
Properties:
DGConnectIdentifier = 'dbstby'
ObserverConnectIdentifier = ''
LogXptMode = 'ASYNC'
DelayMins = '0'
Binding = 'optional'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '30'
RedoCompression = 'DISABLE'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '4'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = ''
LogFileNameConvert = ''
FastStartFailoverTarget = 'dbprim'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
SidName = ‘<sid>’
StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<db host name>)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=<service_name>)(INSTANCE_NAME=<sid>)(SERVER=DEDICATED)))'
StandbyArchiveLocation = 'USE_DB_RECOVERY_FILE_DEST'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.dbf'
TopWaitEvents = '(monitor)'
Database Status:
SUCCESS -
Condition type NAVS not mapped in EBP
Hi,
I am working in Extended Classic scenario..
Condition type NAVS - Non-Deductible Tax is not mapped in EBP. How to map this condition, what are the other requirements needs to be done.
Regards,
Sheetal SalunkheCheck out SAP Note 580225 - Purchasing BAPIs: Conditions and pricing
Hope it helps -
How to make OWB ignore a field that is not mapped.
Hi,
We're using OWB 10.1.
I'm just doing a simple load from a flat file to a regular table.
I discovered that the data file is missing an entire field or column of data.
The field is not necessary so I'm continuing the load.
I just remapped the OWB map so it doesn't not pull data from the last field in the data file.
When it created the control file to do the load, the last field that was unmapped in the OWB map was re-designated as 'DECIMAL EXTERNAL'.
Then when the map runs to load the data, I get an error message of
Record 1: Rejected - Error on table "STAGING"."TCMBBX", column "PAID_AMOUNT".
Column not found before end of logical record (use TRAILING NULLCOLS)So it looks like OWB is still trying to include the last field in the load for some reason when I had unmapped the field in OWB.
My question is how can one un-map a field or not map a field in OWB and then have OWB ignore the field when running the load?
This is regarding removing the map line drawn from a field in the data file to a field in the staging table.
Thanks!Hi,
Declare a range as :
ranges : r_hkont for bseg-hkont.
fill in the values
r_hkont-sign = 'I'.
r_hkont-option = 'BT'.
r_hkont-low = '26000000'.
r_hkont--high = '2999999'.
append r_hkont.
Select sgtxt from bseg into text
where bseg-hkont in r_hkont.
Regards,
Srini.
Maybe you are looking for
-
Getting a perl error when trying to discover a Weblogic Managed Server
Hi, Any help working this out would be greatly appreciated. I've searched Oracle Support and here without success so far. I am trying to add a weblogic 10.3 manager server as a target for the agent on that host. Using Grid Control 10.2.0.5 patch 3 on
-
Lightroom 1.3.1 Printing Problems with Apple OSX 10.5 (aka Leopard)
Whilst the majority the majority of Leopard related print issues were addressed when Adobe updated Lightroom to 1.3.1 and printer vendors released updated drivers some issues remained and it has been left to users to establish workarounds. One such p
-
Hi All, I have uninstalled iTunes from an IBM ThinkPad X40 running XP and I now get the iTunesHelper Error2 screen (Apple Application Support was not found). I do not want to re-install iTunes as I am now a mac user. However I want to get rid of the
-
Lenovo G500 - Can't Use Keys And Touchpad/Buttons At Same Time
Whilst gaming, primary button use for me will be WASD (Directional) and obviously right&left click. The problem I'm getting is that whilst I'm holding one of WASD, then say right click to shoot it doesn't shoot - almost as if the button is locked whi
-
Graphic elements not showing up in iWeb
I'm using Pure CSS to develop a menu for my iweb site. After I've created the menu using Pure CSS; I export the html and graphical elements into a folder on my desktop. I then add the html using add html snippet. The menu imports without any of the g