Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have looked everywhere in the txmlmap component but i wasnt able to find the die on error checkbox... if i have missed looking onto some settings.. Can you guys help me??
Thanks,
Ankit
No it doesn't have one, the idea is you add another output to catch rejects via the filter box.
One work around if you really wanted the job to die is you could have another subjob with a run if which tests if there was an error in the tXML component
!((String)globalMap.get("tXMLMap_1_ERROR_MESSAGE")).equals("") && !Relational.ISNULL(((String)globalMap.get("tXMLMap_1_ERROR_MESSAGE")))
and hang a tDie off that? Just a thought.
@mattt good idea but it should be in opposite order or else you could get a NullPointerException:
!Relational.ISNULL(((String)globalMap.get("tXMLMap_1_ERROR_MESSAGE"))) &&
! ((String)globalMap.get("tXMLMap_1_ERROR_MESSAGE")).equals("")