You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a CSV file where the header row contains 5 columns of data, but the first 50+ rows have only 4 columns of data. At least one row at the end of the file should have all 5 columns fo data, matching the header.
Use the Flat File Import Wizard to import the file. Notice on the Preview step that it samples the first 50 rows, and displays only 4 columns of data.
Execute the import, and it will end with the error "Error inserting data into table." with no additional details.
The import fails because the wizard is attempting to import only the 4 columns, and when it gets to the row with 5 columns, it fails.
The wizard should at least be able to bubble up that the file has an inconsistent column count, so that I know the file is not properly formatted. Ideally, it would handle this gracefully, similar to the way the Import-Csv PowerShell cmdlet does, and successfully import the file, even with inconsistent column counts
Azure Data Studio version: azuredatastudio 1.2.4 (1ebfd02, 2018-11-02T21:50:52.634Z)
OS version: Windows_NT x64 10.0.17134
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
Issue Type: Bug
The import fails because the wizard is attempting to import only the 4 columns, and when it gets to the row with 5 columns, it fails.
The wizard should at least be able to bubble up that the file has an inconsistent column count, so that I know the file is not properly formatted. Ideally, it would handle this gracefully, similar to the way the
Import-CsvPowerShell cmdlet does, and successfully import the file, even with inconsistent column countsAzure Data Studio version: azuredatastudio 1.2.4 (1ebfd02, 2018-11-02T21:50:52.634Z)
OS version: Windows_NT x64 10.0.17134
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: