SPRKPY1001
File with parsing errors
Message: This code section has parsing errors
Category: Parsing error.
Description
A parsing error is reported by the Snowpark Migration Accelerator (SMA) when it cannot correctly read or understand the code in a file (it cannot correctly "parse" the file). This issue code appears when a file has one or more parsing error(s).
Scenario
Input: The EWI message appears when the code has invalid syntax, for example:
Output: SMA find a parsing error and comment the parsing error adding the corresponding EWI message:
Additional recommendations
Check that the file contains valid Python code. (You can use the issues.csv file to find all files with this EWI code to determine which file(s) were not processed by the tool due to parsing error(s).) Many parsing errors occur because only part of the code is input into the tool, so it's bets to ensure that the code will run in the source. If it is valid, report that you encountered a parsing error using the Report an Issue option in the SMA. Include the line of code that was causing a parsing error in the description when you file this issue.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
Last updated