Mehmet Seflek
11/28/2022, 11:57 PMWITH
statements in SuiteQL? I’m running this super basic query with a WITH
clause but getting a Invalid search query. Detailed unprocessed description follows. Search error occurred: Unsupported type: class com.netledger.sqlquery.model.SqlFactoredSourceReference : basicwith
error:
WITH basicwith AS (
SELECT
AccountingPeriod.id
FROM
AccountingPeriod
)
SELECT * FROM basicwith
Matt Bernstein
11/29/2022, 12:59 AMWITH
temp_table as (
SELECT
AccountingPeriod.id
FROM
AccountingPeriod
)
select
id
from
temp_table
Mehmet Seflek
11/29/2022, 10:36 PM*
? Your query also didn’t work, but adding a GROUP BY id
at the end made it work, which makes me think something is wrong with our integration and not the query itself.Matt Bernstein
11/30/2022, 12:55 PMSELECT
*
from
(
SELECT
AccountingPeriod.id
FROM
AccountingPeriod
)