ORA-01489: result of string concatenation is too long when query uses ListAGG
search cancel

ORA-01489: result of string concatenation is too long when query uses ListAGG

book

Article ID: 193308

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

We have a query using LISTAGG to aggregate project names. This query is running fine in SQL Developer and not running when deployed as a query in Clarity 

Environment

Release : All Supported Clarity Version 

Component : CA PPM STUDIO

Cause

This is Caused because of the length of Aggregated values in LISTAGG . By default the maximum length is 4000 characters and if it exceeds this we face this issue.

Resolution

Workaround:

  • Use XMLAGG to aggregate the values instead of LISTAGG.

 

 

 

Additional Information