cancel
Showing results for 
Search instead for 
Did you mean: 

How to see message by using <xsl:message terminate="yes" in XSLT mapping

thorsten_hautz
Participant
373

Hi all,

I have a problem with an XSLT mapping in the Integration Suite:

I want to check for the existence of some mandatory fields in the mapping and, if they are missing, abort the mapping and throw an exception.

Normally, this works using the instruction `<xsl:message terminate="yes">Exception Text</xsl:message>`.

The mapping is aborted in the Integration Suite, but I can't find my message "Exception Text" anywhere. I can only see the error message "Processing terminated by xsl:message at line 5 in XSLTMapping1.xsl," but not my message.

Does anyone know how to see the message in the log?
Otherwise nobody can't see the reason for the cancellation of the mapping.

Kind regards
Thorsten 

Ryan-Crosby
Active Contributor
0 Kudos
Why not use the XML validator function for this type of thing?
Ryan-Crosby
Active Contributor
0 Kudos

You had stated "I want to check for the existence of some mandatory fields in the mapping and, if they are missing, abort the mapping and throw an exception." which I would consider schema validation.

thorsten_hautz
Participant
0 Kudos

Oh, sorry. That was my fault. I didn't describe my problem correctly.
We want to check the content of an XML document, not the structure.

View Entire Topic
thorsten_hautz
Participant
0 Kudos

I got the following response from SAP to this topic:

Upon checking with our dev experts, the CPI XSLT mapping uses Saxon Library for providing XSLT transformations. However, Saxon doesn't output by xsl error message default to the logs. For more information, kindly refer to the following documents:
https://www.saxonica.com/html/documentation12/using-xsl/stylesheet-output/message-output.html

We encourage you to submit the feature/functionality requests to our influence page:
https://influence.sap.com/sap/ino/#/campaign/2282/ideas-all/?sort=&campaign=2282&variant=all

Depending on the number of customer votes additional feature might also be considered. Feel free to post your questions, we will be glad to address them. 

I created a functionality request for this here: https://influence.sap.com/sap/ino/#/idea/326654/?section=sectionDetails

So please vote for it if you need this feature too.