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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
ankit7359
Creator II
Creator II

does txmlmap have die on error checkbox???

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

Labels (3)
3 Replies
Anonymous
Not applicable

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.

nfz11
Creator III
Creator III

@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("")
Anonymous
Not applicable

Good point! Thanks