Aaron McCausland
06/09/2026, 1:16 PMCeligo AI
06/09/2026, 1:16 PMAI generated answer (using internal Slack threads):The issue with your SuiteQL query is that you're trying to use the
LISTAGG function, which is not supported in SuiteQL. This function is used to aggregate a set of string elements into a single string, but unfortunately, SuiteQL does not support this function.
Here is the part of your query that is causing the issue:
sql
LISTAGG (DISTINCT TL.item, ' | ') WITHIN GROUP (ORDER BY TL.id) as OppItems
You might need to find an alternative way to achieve the same result without using the LISTAGG function. One possible solution could be to fetch the data without aggregation and then process it in your script to achieve the desired result.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
06/09/2026, 1:16 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847107053
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.844299436
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842834473
Celigo AI
06/09/2026, 1:16 PMCeligo AI
06/09/2026, 1:16 PMAaron McCausland
06/09/2026, 1:17 PM