Summary
Cannot use NEXT_DAY function in Fusion BI Publisher Data model
Content
Hi All,
I am trying to run the below query to get the next Saturday in a BI Publisher Data model.
SELECT TRUNC (NEXT_DAY (TRUNC (SYSDATE, 'IW'), 'SATURDAY')) FROM DUAL
However it keeps giving me the below error.
oracle.xdo.servlet.data.DataException: oracle.xdo.XDOException: java.sql.SQLDataException: ORA-01846: not a valid day of the week
Is there a technical limitation here? The query in question works perfectly when I run it in SQL Developer.
How do I calculate the next SATURDAY from today in BI Publisher.
Regards,
Abhradeep