Aaron McCausland
10/28/2025, 7:46 PMCeligo AI
10/28/2025, 7:46 PMAI generated answer (using internal Slack threads):The expression is invalid because the
REGEXP_SUBSTR({percentcompleteoverride.period}, '^[^\d\s]+\s+') part of the formula is expected to return a string that represents a month (like 'Jan', 'Feb', etc.). However, the TRIM() function is used to remove leading and trailing spaces, which means if the REGEXP_SUBSTR() function returns 'Jan', the TRIM() function will not alter it.
The problem arises when you try to concatenate this result with ' 1 ' and '2025' to form a date string and then convert it to a date using the TO_DATE() function. The TO_DATE() function expects a string in the format 'MON DD YYYY', but the concatenated string is not in this format because there is an extra space before '1'.
The correct formula should be:
TO_DATE(TRIM(REGEXP_SUBSTR({percentcompleteoverride.period}, '^[^\d\s]+\s+'))||'1'||'2025', 'MON DD YYYY')
This will correctly form a date string like 'Jan12025', which can be converted to a date using the TO_DATE() function.
******
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
10/28/2025, 7:46 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828003049
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.810577512
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.808776915
Celigo AI
10/28/2025, 7:46 PMCeligo AI
10/28/2025, 7:48 PMAaron McCausland
10/28/2025, 7:48 PM