2024 Jul 02 5:27 PM - edited 2024 Jul 04 7:48 AM
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
Hi,
here a solution which is working fine in Integration Suite. The mapping is interrupted and the error message is visible in the log.
Thererfore you can use the error function available since XSLT 2.0.
Example: <xsl:value-of select="error(QName('http://www.w3.org/2005/xqt-errors','error:err0815'), 'This is a test exception!')"/>
You can find a descrition of this function here: https://www.w3.org/TR/xpath-functions-31/#func-error
If you use this functionality you can see the error message in monitoring:
BR,
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
10 | |
10 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.