Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to retrieve exception error details and error line no and store in database. In tLogCatcher, I only saw exception error name such as java.lang.NumberFormatException:null. How to retrieve error line no and their details?
The following is tLogCatcher details. Where to get error line number and details?
Hello @JaRoi
The tXMLMap component doesn't have "die on error" option. You could add another output to catch rejects via the filter box.
!Relational.ISNULL(((String)globalMap.get("tXMLMap_1_ERROR_MESSAGE"))) &&
! ((String)globalMap.get("tXMLMap_1_ERROR_MESSAGE")).equals("")
Best regards
Sabrina
Hello,
In addition to that, there is a jira issue that "tmap with Die on error uncheck doesn't create ErrorReject Output".
https://jira.talendforge.org/browse/TUP-20851
It works in 7.1.1 but subscription version and not work in 7.0, 7.1.1 Open Studio.
This issue is fixed in V 7.2.1.
Best regards
Sabrina
I changed txmlmap to tmap to get error stack trace via ErrorReject output. But I still have one issue. It only catch one error exception but the file has one or more exception error. How to get all error exceptions in one xml file?
Hello @JaRoi
Could you please set an example for your more exception error in one XML file?
Best regards
Sabrina