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

Four Stars

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

Tags (1)
Moderator

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

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

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read