Complete the code to specify the error file location in the COPY INTO command.
COPY INTO my_table FROM @my_stage FILE_FORMAT = (TYPE = 'CSV') ON_ERROR = 'skip_file' ERROR_FILE = '[1]';
The ERROR_FILE parameter should point to the location where error files are stored, typically a dedicated error folder in the stage.
Complete the code to set the ON_ERROR behavior to continue loading despite errors.
COPY INTO my_table FROM @my_stage FILE_FORMAT = (TYPE = 'CSV') ON_ERROR = '[1]';
The ON_ERROR = 'continue' option tells Snowflake to continue loading data even if some rows cause errors.
Fix the error in the COPY INTO command to properly handle load errors by skipping bad rows.
COPY INTO my_table FROM @my_stage FILE_FORMAT = (TYPE = 'CSV') ON_ERROR = '[1]';
The skip_file_num option allows skipping a specified number of bad rows before aborting the load.
Fill both blanks to configure the COPY INTO command to log errors and skip the first 5 bad rows.
COPY INTO my_table FROM @my_stage FILE_FORMAT = (TYPE = 'CSV') ON_ERROR = '[1]' ERROR_LIMIT = [2];
Using ON_ERROR = 'skip_file_num' with ERROR_LIMIT = 5 skips the first 5 bad rows before aborting.
Fill all three blanks to create a COPY INTO command that skips bad rows, logs errors to a specific path, and limits errors to 3.
COPY INTO my_table FROM @my_stage FILE_FORMAT = (TYPE = 'CSV') ON_ERROR = '[1]' ERROR_FILE = '[2]' ERROR_LIMIT = [3];
This configuration skips bad rows up to 3 errors, logs errors to '@my_stage/error_logs/', and stops after the limit.