Medium severityquery
Power BI Refresh Error:
Snowflake UDF Language Not Supported
What does this error mean?
A User-Defined Function (UDF) or User-Defined Table Function (UDTF) was called in a context that does not support its implementation language, or the language runtime is unavailable.
Common causes
- 1Java or Scala UDF called on a Virtual Warehouse that is not on a Snowpark-compatible runtime
- 2Python UDF requiring Anaconda package access but the Anaconda terms have not been accepted for the account
- 3WASM (JavaScript) UDF exceeding the allowed execution timeout
- 4UDF referencing an external network location (EXTERNAL ACCESS INTEGRATION) that has not been configured
- 5UDF using a third-party Python package not in the Snowflake Anaconda channel
How to fix it
- 1For Python UDFs, accept the Anaconda terms of service: `ALTER ACCOUNT SET PACKAGES_POLICY = ANACONDA_ONLY` and confirm via the Snowflake admin UI
- 2Verify the UDF handler and language: `DESCRIBE FUNCTION <udf>(arg_types)`
- 3For UDFs needing external packages, create an EXTERNAL ACCESS INTEGRATION and attach it to the UDF
- 4Check that the Snowflake warehouse size supports Snowpark workloads (X-Small may be too small for Java/Scala UDFs with large payloads)
- 5Review Snowflake release notes for runtime changes that may have deprecated the UDF language version