version:
2.2.0
Please tell us about your environment where the above product is running:
- Operating System:
Windows Server 2016 Standard
10.0.14393 build 14393
-
Is this running in a virtual machine:
Yes-
If answered yes above, which virtual machine environment and version:
Not sure
-
If answered yes above, which virtual machine environment and version:
Current Behavior:
When trying to load an empty file, it produces console output as index of of range and the exit code is not 0. The empty file was generated from SQL Sever bulkloader tool (BCP)
The error is being logged as a failure into a Snowflake task log table even though an empty file loading causes no harm to the load process.
Data Loader generated the following error when trying to load the empty file:
2021-06-17 11:06:53,946 - Application - INFO - Application started.
2021-06-17 11:06:53,946 - Application - INFO - Connecting to Snowflake Database
2021-06-17 11:06:54,789 - Application - INFO - Resuming Warehouse data_load_wh
2021-06-17 11:06:54,992 - Application - INFO - Statement executed successfully.
2021-06-17 11:06:54,992 - Application - INFO - Starting Transaction FILE_UPLOAD
2021-06-17 11:06:54,992 - Application - INFO - CREATING TRANSACTION FILE_UPLOAD
2021-06-17 11:06:55,305 - Application - INFO - Statement executed successfully.
2021-06-17 11:06:55,508 - Application - INFO - SKIPPING EMPTY FILE: BI.dbo.LU_Mileage.csv
2021-06-17 11:06:55,508 - Application - ERROR - Exception :: list index out of range
2021-06-17 11:06:55,508 - Application - ERROR - Exception :: list index out of range
2021-06-17 11:06:55,914 - Application - INFO - Statement executed successfully.
snowflake_uploader.exe --file g:\bcp_export_qa\BI.dbo.LU_Mileage.csv --sf_account xxx --sf_username svr_lz_load --sf_password xxxx --sf_database lz_qa --sf_schema bi --sf_warehouse data_load_wh --sf_role SYSADMIN_qa --sf_table LU_Mileage --sf_file_format lz_qa.CONTROL.FF_UTF_8 --split_file --sf_stage_type TABLE --remove_split_dir --use_upload_dir --synchronous
Expected Behavior:
Data Loader should allow loading empty file without exiting as error
π Possible Solution:
Context:
Data Loader was being invoked as a shell command and the output of the command line is being logged into a Snowflake task log table. Any errors will be reported at the end of the loader execution.