Error when using custom calculations in Insights

I have added a custom function alias, pxYearNumber, in pyGetFunctionAliasesForDataViewsExtension, and it appears correctly in the Calculations list within Insights.

However, when I use this calculation in Columns or Promoted Filters, I receive the following error:

“Calculations should contain only supported functions.”

The out-of-the-box calculations/functions provided by Pega work as expected, and the issue occurs only with the custom function alias(even with OOTB function alias or newly created).

Has anyone successfully used a custom function alias in Insights calculations? Are there any additional configurations or validation rules that need to be updated so that the function is recognized as a supported function in Columns and Promoted Filters?

Any guidance would be appreciated.

Thanks.

It is likely a caching issue - for custom function alias restart is required for them to work in Insights.

I can see the FA and was able to build a calculation using it, but I get an error when I run the insight. Are you suggesting to restart the server?

yes, as the function might be there for you to see but the rule validating that it actually exists in cached for the state before you created the custom FA.

this is a known issue, '26 will give you the ability to refresh this from the application (without a restart).