SnowConvert AI - Out of Scope¶
SSC-OOS-0001¶
The file has an unexpected encoding and was not translated
Description¶
This error occurs when the tool cannot recognize the character encoding format of a source code file. Character encoding is a method of converting text characters into numerical values that computers can process. When the tool encounters characters it cannot interpret, it generates this error.
Best Practices¶
Ensure all files in the input folder use the same character encoding to prevent encoding-related errors.
Choose the correct encoding using either the conversion settings or by specifying the –encoding parameter in the CLI. You can identify the correct encoding using tools like Free Online Formater, or by running
file -i *on Linux or macOS.For additional assistance, contact us at snowconvert-support@snowflake.com
SSC-OOS¶
Out of scope code unit.
Description¶
This issue is generated when SnowConvert AI encounters a top-level SQL statement or code unit that is outside the translation scope. The specific construct is identified in the issue message (e.g., GRANT, REVOKE, CREATE FUNCTION in an unsupported language). SnowConvert AI comments out the entire statement and adds this marker. The limitation may be due to Snowflake not supporting the construct or SnowConvert AI not yet implementing its translation.
Code Example¶
Input Code:¶
Generated Code:¶
Best Practices¶
Review the commented-out statement: Determine whether the construct is needed in Snowflake and implement it manually using Snowflake-native syntax (e.g., GRANT for access control statements).
Check for Snowflake equivalents: Many out-of-scope constructs have Snowflake counterparts with different syntax. Consult the Snowflake SQL reference for the appropriate replacement.
If you need more support, you can email us at snowconvert-support@snowflake.com