New error code for function-related errors (Preview)¶
Attention
This behavior change is in the 2025_07 bundle.
For the current status of the bundle, refer to Bundle History.
The error code of messages that are returned when there is a problem with a function call are changing as follows:
- Before the change:
The error code of function-related errors is
002140
. For example:002140=SQL compilation error: Unknown function
- After the change:
The error code of function-related errors is
002139
. For example:002139=SQL compilation error: Unknown function
As part of this change, Snowflake returns additional information when an error occurred because the caller didn’t have the correct access control privileges.
Ref: 2124