azuredatastudio icon indicating copy to clipboard operation
azuredatastudio copied to clipboard

Import flat file wizard stuck on step 4

Open philipnye opened this issue 1 year ago • 11 comments

Issue Type: Bug

  1. Attempt to import an 18KB file with two columns and 650 rows.
  2. Go through steps 1-3 of the wizard fine, and have a strong 'AzureActiveDirectory - Universal with MFA support' connection - all other operations are working fine
  3. Import wizard hangs on step 4, and never seems to complete

I note that I'm basically describing the same experience as in the closed issue #12624

Extension version: 1.5.4 Azure Data Studio version: azuredatastudio 1.41.2 (0f0960d0e774e1ce903b79378addff96117c27a6, 2023-02-08T20:16:49.071Z) OS version: Windows_NT x64 10.0.19045 Restricted Mode: No Preview Features: Enabled

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz (8 x 1896)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 7.82GB (0.57GB free)
Process Argv --folder-uri file:///c%3A/Users/nyep/Institute%20for%20Government/Data%20-%20General/UK%20government%20and%20politics/Ministers/Ministers%20database
Screen Reader no
VM 0%

philipnye avatar Mar 17 '23 18:03 philipnye

We need more info to debug your particular issue. If you could attach your logs to the issue (ensure no private data is in them), it would help us fix the issue much faster. First open the Settings page, find the Mssql: Tracing Level setting and change that to All then restart ADS and repro your issue. Next there are two types of logs to collect:

Console Logs

  • Open Developer Tools (Help -> Toggle Developer Tools)

  • Click the Console tab

  • Click in the log area and select all text (CTRL+A)

  • Save this text into a file named console.log and attach it to this issue.

  • Developer Tools can be closed via Help -> Toggle Developer Tools Application Logs

  • Open command palette (Click View -> Command Palette)

  • Run the command: Developer: Open Logs Folder

  • This will open the log folder locally. Please zip up this folder and attach it to the issue.

github-actions[bot] avatar Apr 03 '23 21:04 github-actions[bot]

Logs as requested - with edits just to remove connection details. Also attached is the file I'm trying to import using the import wizard. Thanks. console.log 20230404T102453.zip Westminster_Parliamentary_Constituency_to_European_Electoral_Regions_(December_2020)_Lookup_in_the_United_Kingdom.csv

philipnye avatar Apr 04 '23 09:04 philipnye

@cheenamalhotra , based on logs it seems related to #22999

aasimkhan30 avatar May 07 '23 20:05 aasimkhan30

From the STS logs it seems there was an NRE:

Verbose: 0 : Processing message with id[11], of type[Request] and method[connection/getconnectionstring]
Error: 0 : connection/getconnectionstring : Object reference not set to an instance of an object.
Verbose: 0 : Sending message of id[11], of type[Response] and method[connection/getconnectionstring]

[Error - 10:26:39] Request connection/getconnectionstring failed.
  Message: Object reference not set to an instance of an object.
  Code: 0 

In the issue #22999 you could still get connection string but failed to connect with access token provided, so doesn't seem related directly... Have you seen something like that before?

cheenamalhotra avatar May 08 '23 18:05 cheenamalhotra

Moving to July, as it seems like a one time error than a consistent use-case, and we also haven't heard more reports on this.. However, I don't think this can be closed with #22999.

@philipnye Do you still face this issue or it went away with recent releases? Maybe you can give ADS latest stable v1.43 a try and let us know?

cheenamalhotra avatar May 09 '23 04:05 cheenamalhotra

Just tested this again on v1.43 and I'm afraid I'm still experiencing it!

I've attached new logs (I was trying to import the same file).

console.log 20230509T172621.zip

philipnye avatar May 09 '23 17:05 philipnye

Just to add: I've tested this with a handful of other CSVs (e.g. the attached) and having the same experience, so I don't think it's anything to do with the particular file I've been testing with. trees.csv

philipnye avatar May 09 '23 17:05 philipnye

Thanks for verifying.. I see below error:

[Error - 17:58:58] Request connection/listdatabases failed.
  Message: System.Exception: SpecifiedUri 'file:///c:/Users/***/Desktop/console.log' does not have existing connection
   at Microsoft.SqlTools.ServiceLayer.Connection.ConnectionService.ListDatabases(ListDatabasesParams listDatabasesParams) in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\Connection\ConnectionService.cs:line 1080
   at Microsoft.SqlTools.ServiceLayer.Connection.ConnectionService.<>c__DisplayClass86_0.<<HandleListDatabasesRequest>b__0>d.MoveNext() in D:\a\_work\1\s\src\Microsoft.SqlTools.ServiceLayer\Connection\ConnectionService.cs:line 1312
  Code: 0 

@aasimkhan30 why would listdatabases call be made with file uri?

cheenamalhotra avatar May 09 '23 17:05 cheenamalhotra

I'm still having this issue on the Mac version as well

jatkins23 avatar May 11 '23 23:05 jatkins23

This is still not working - any information when the fix will be released?

peterbud avatar Sep 08 '23 06:09 peterbud

This issue is also affecting me. Is there a fix somehow?

Joly0 avatar Jun 14 '24 14:06 Joly0