Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
shivaaa786
Contributor
Contributor

How to reduce the cMap -Talend data mapper error detail / stack trace

Hi team,

when ever mapping  exception / custom exception occurs  in cMap- TDM .The camel error message [Simple (${exception.message}) ] contains lot of details which are not needed for my use case .

 

is there way to control how much error detail talend throws during TDM error???

 

My requirement : net.sf.saxon.trans.XPathException: An empty sequence is not allowed as the value in 'cast as' expression (or ) just custom exception message which i throw inside java method which is used in cMap.

 

 

Actual received:

[ERROR]: org.talend.transform.camel.TdmProcessor - Overall:Fatal
1: Info - Executing map. (328)
Map:/ESB_TALEND/Maps/map_installerSales Properties: {accept-encoding=gzip,deflate, Authorization=Basic ZWFpYWRtaW46aW5kaWExMw==, breadcrumbId=ID-NB1499-R90GKD6L-1560958000572-0-7, CamelAcceptContentType=*/*, CamelCxfMessage={org.apache.cxf.resource.method=public abstract java.lang.Object esb_talend.processinstallersales_0_1.processInstallerSales$Service_cREST_1.processInstallerSales(org.w3c.dom.Document), http.base.path=http://127.0.0.1:8041, HTTP.REQUEST=Request(POST //127.0.0.1:8041/InstallerSales)@78fc2eea, org.apache.cxf.transport.Destination=org.apache.cxf.transport.http_jetty.JettyHTTPDestination@2f1e2fa0, HTTP.CONFIG=null, jaxrs.template.parameters={FINAL_MATCH_GROUP=[/]}, org.apache.cxf.message.Message.QUERY_STRING=null, operationName=processInstallerSales, User-Agent=Apache-HttpClient/4.1.1 (java 1.5)}

 

2: Fatal - The transformation engine failed. (202)
Exception: net.sf.saxon.trans.XPathException: An empty sequence is not allowed as the value in 'cast as' expression
at net.sf.saxon.expr.Expression.typeError(Expression.java:1387)
at net.sf.saxon.expr.AtomicSequenceConverter.evaluateItem(AtomicSequenceConverter.java:299) ............100 lines

 

3: Fatal - The transformation engine failed. (202)
Exception: net.sf.saxon.trans.XPathException: An empty sequence is not allowed as the value in 'cast as' expression
at net.sf.saxon.expr.Expression.typeError(Expression.java:1387)
at net.sf.saxon.expr.SingletonAtomizer.evaluateItem(SingletonAtomizer.java:218)
......100 lines

 

Thanks,

Shiva

Labels (2)
1 Reply
Anonymous
Not applicable

Hello,

You can set the log level to "None" and Exception Threshold to "Error".

Could you please let us know if this article helps?

https://community.talend.com/t5/Migration-Configuration-and/cMap-loglevel-Exception-Handling/ta-p/12...

Best regards

Sabrina