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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
JayQueue
Creator
Creator

Route an empty recordset from tParseRecordSet

Hello,

There is a job with uses tDBSP with 3 IN params and then we parse the recordset with tParseRecordSet.
Now I want to catch what IN params do not return a record.

I thought it was easy with ((Integer)globalMap.get("tParseRecordSet_1_NB_LINE")) but this returns null.

Tried with a tMap to route with ((Integer)globalMap.get("tParseRecordSet_1_NB_LINE")) == null but this does not route anything.

Is there another way?

Labels (2)
1 Solution

Accepted Solutions
JayQueue
Creator
Creator
Author

Fixed it with

net.sourceforge.jtds.jdbc.CachedResultSet sfresultset = (net.sourceforge.jtds.jdbc.CachedResultSet) input_row.resultset; 
if (!sfresultset.next()) {
System.out.println("ResultSet is empty for " + input_row.fname + " " + globalMap.get("customerLastName"));
} else {
System.out.println("ResultSet is not empty for " + input_row.fname);
}

 

View solution in original post

1 Reply
JayQueue
Creator
Creator
Author

Fixed it with

net.sourceforge.jtds.jdbc.CachedResultSet sfresultset = (net.sourceforge.jtds.jdbc.CachedResultSet) input_row.resultset; 
if (!sfresultset.next()) {
System.out.println("ResultSet is empty for " + input_row.fname + " " + globalMap.get("customerLastName"));
} else {
System.out.println("ResultSet is not empty for " + input_row.fname);
}