Hi all -
I'm trying to use one of my favorite aggregate functions, listagg, to concatenate some messages texts (disbursement messages in particular). I'm doing what I normally do with listagg, setup an appropriately sized expression, check the aggregate box in the expression, and pop in the listagg statement. It looks like this: listagg (distinct J.MESSAGE_TEXT,';'). When I try running the query with the expression as a field, I get the following error.
Error in running query because of SQL Error, Code=932, Message=ORA-00932: inconsistent datatypes: expected - got CLOB (50,380)
I checked, message_text is a char100 field, and listagg is defined as returning varchar2. No CLOBS in sight. There is a descrlong, which is a clob, in PSMSGCATDEFN, but I'm not referencing it in any way.
Any answers?
------------------------------
Vic Goldberg
University of Colorado System
goldbergvictor@gmail.com------------------------------