There's got to be a standard SQL exception for this case. Here's a link to an example (not sure if this helps or not): http://www.birt-exchange.org/org/forum/index.php/topic/25127-exception-cannot-fetch-the-next-data-row/page__p__98664&#entry98664__s__5e0cc6eebed6eb4085797cee87f860ce