MetricSign
EN|NLRequest Access
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

  1. 1For Python UDFs, accept the Anaconda terms of service: `ALTER ACCOUNT SET PACKAGES_POLICY = ANACONDA_ONLY` and confirm via the Snowflake admin UI
  2. 2Verify the UDF handler and language: `DESCRIBE FUNCTION <udf>(arg_types)`
  3. 3For UDFs needing external packages, create an EXTERNAL ACCESS INTEGRATION and attach it to the UDF
  4. 4Check that the Snowflake warehouse size supports Snowpark workloads (X-Small may be too small for Java/Scala UDFs with large payloads)
  5. 5Review Snowflake release notes for runtime changes that may have deprecated the UDF language version

Frequently asked questions

How do I check if Anaconda terms have been accepted for my Snowflake account?

Run `SELECT SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO()` or check Admin → Billing & Terms in the Snowsight UI. An Orgadmin or Accountadmin must accept the Anaconda terms.

Other query errors