TRY_TO_UUID

functionsupportedCore SQL functions

docs.snowflake.com ↗

Conversion functions

A special version of TO_UUID that performs the same operation — that is, converts an input expression to a UUID value — but with error handling support. If the conversion can’t be performed, it returns a NULL value instead of raising an error. For more information, see the following topics: - Error-handling conversion functions - TO_UUID

Syntax

TRY_TO_UUID( <string_expr> )

Parameters

NameRequiredDescription
string_exprrequiredA string expression in UUID format.

Returns

Returns a value of type UUID or NULL when TO_UUID would return an error.