Skip to main content

Element type "MAX" must be followed

Comments

1 comment

  • David Paras

    Oracle Query is returning a single value and the DB query used in the mapper is expecting multiple values for the target column.

    For resolving this issue there are two possible ways. One is to modify your DB query used in data mapper so that it will return a multiple value from the database. Or you can change the third input Boolean value of the DB Query to 'False' in the Data Mapper that will always fetch the first matching value. The DBQuery with value false should be like this :

    //Max value

    dbquery(‘select max(HCP_STAGE_ID) from HCP_STAGE where CLIENTHCPLOCATIONID = '32311FF' and CLIENTHCPID = '029633BB-BAC',$dbinfo,’false’)

    //Min value

    dbquery(‘select min(HCP_STAGE_ID) from HCP_STAGE where CLIENTHCPLOCATIONID = '32317FF' and CLIENTHCPID = '029633BB-BAE3-4C',$dbinfo,’false’)

    0

Please sign in to leave a comment.