SSC-EWI-0001
Unrecognized token on the line of the source code.
Some parts in the output code are omitted for clarity reasons.
Severity
Critical
Description
This issue occurs when there is an error while parsing the source code that is being converted. It means there is a source code syntax error or a specific statement of the code is not being recognized yet.
Example Code
The following example illustrates different parsing error scenarios where invalid syntax is placed in the input. Notice how the message varies between every scenario, these contents may be helpful on isolating and fixing the issue. For more information check "Message Contents" below.
Input Code:
Output Code:
Message Contents
Starting clause: Specifies the starting location (line, column, and 'text') of the unrecognized code. The code will be commented from the 'text' element onward for every unrecognized element until the parser locates a possible recovery point.
Expected grammar clause: Specifies the type of grammar that the parser was expecting. Check if the commented code has a matching type of the expected grammar.
Last matching token clause (OPTIONAL): May appear if the unrecognized code was partially recognized. This signals the point up until the parser recognized valid elements, so check the following tokens in the commented code to make sure they are valid.
Failed Token clause (OPTIONAL): May only be present when a "Last matching Token clause" is also present. This represents at which point the parser ultimately determined the code is invalid or not recognized. Make sure this element can be placed in this syntactical location.
Recovery Code: It is intended to be used as an error code, and may be supplied for better support during parser upgrade requests. It represents how the parser triggered its recovery mechanism.
Recommendations
Check if the source code has the correct syntax.
The message can be used to isolate and solve the issue.
If the syntax is not supported, it may be manually changed to a supported syntax.
If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated