Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Using Try-Catch in an xaction file

  1. #1

    Question Using Try-Catch in an xaction file


    I was just wondering whether 'Try-Catch' is supported in an xaction file using javascript as a Process Action. I was trying to use this to catch an error where the executed SQL query doesn't return any recordset.

    As far as I've observed, an empty recordset/query_result creates an error when used in charts. So I tried to check the query_result and trap it if it doesn't return any record, before using it in the chart to prevent the IndexOutOfBoundsException error from being displayed.

    I hope someone has a solution for this problem. Regards!

  2. #2
    Join Date
    Dec 2005



    you can use the if-statemnet and see if query_result.getRowCount() >0


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.