Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to use Group by condition in ODI Mappings

2838967Sep 20 2015 — edited Sep 21 2015

Hi Experts,

I have a Requirement in BI APPS Customization. Can you please explain anyone,how to use LISTAGG Function in odi mapping.

i have applied LISTAGGR function in odi mapping level,but i am getting below error.

ODI Mapping:ColumnName: ENAME      Expression: LISTAGG(EMP.ENAME,',')WITHIN GROUP(ORDER BY EMP.ENAME)

Error:

ODI-1240: Flow LIST_AGG_FUN_USAGE fails while performing a Integration operation. This flow loads target table EMP_BI.

ODI-1228: Task LIST_AGG_FUN_USAGE (Integration) fails on the target ORACLE connection scott_db.

Caused By: java.sql.SQLSyntaxErrorException: ORA-00937: not a single-group group function


Oracle Query:

If i used this sql query in Database its getting correct result.

SELECT DEPTNO,LISTAGG(ENAME,',')WITHIN GROUP(ORDER BY ENAME) FROM EMP GROUP BY EMP.DEPTNO;

Output:

10CLARK,KING,MILLER
20ADAMS,FORD,JONES,SCOTT,SMITH
30ALLEN,BLAKE,JAMES,MARTIN,TURNER,WARD


Please give your valuable solutions,Thanks in advance.

Regards,

Raj

This post has been answered by Bhabani Ranjan Mahapatra on Sep 20 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 19 2015
Added on Sep 20 2015
4 comments
5,907 views