vscode-dbt-power-user icon indicating copy to clipboard operation
vscode-dbt-power-user copied to clipboard

Error while trying to generate the model (from sources)

Open jfox-teine opened this issue 2 years ago • 9 comments

Expected behavior

Should be able to click on 'generate model' in sources.yml and have a model generated.

Actual behavior

An error occured while trying to generate the model. Runtime Error. Runtime Error - Cannot create cursor from closed connection.

I can execute sql, execute model and compile sql, so it can see my profiles.yml and connect to my databricks instance just fine.

Steps To Reproduce

I'm simply navigating from root>project>models>sources>sources.yml and clicking on Generate Model, then an error occurs.

image

Log output/Screenshots

image

I have my SQL datawarehouse on and just ran a query against it from Execute dbt SQL.

Operating System

Windows 10

dbt version

1.3.1 core, 1.3.2 databricks, 1.3.0 spark

dbt Adapter

dbt-databricks

dbt Power User version

v0.10.3

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

jfox-teine avatar Dec 24 '22 00:12 jfox-teine

That's exactly what's happening to me at the moment.

nacruzg avatar Feb 18 '23 01:02 nacruzg

Hello guys!

I can confirm that it still happens.

My versions: dbt Power User v0.13.0 VS Code 1.78.2

dbt

  • installed: 1.4.6
  • sqlserver: 1.4.3 - Up to date!

romiof avatar May 25 '23 20:05 romiof

I get the same issue. So adding a vote

Dbt synapse 1.3.0

alittlesliceoftom avatar Jun 08 '23 11:06 alittlesliceoftom

Same error here.

dbt SQL-Server 1.4.6, Ubuntu 22

stephan-meier avatar Jun 25 '23 08:06 stephan-meier

same error.

cs-emre avatar Aug 21 '23 09:08 cs-emre

Similar to ##532

mdesmet avatar Aug 21 '23 09:08 mdesmet

Same error.

DSamuylov avatar Aug 23 '23 22:08 DSamuylov

Same here. At random times i have not understood, it just starts working. But usually get this error. Also get same error when tryinh to synchronize columns with database in documentation editor.

MarvinJohannisson avatar Sep 08 '23 16:09 MarvinJohannisson

Same here, mysql. errors during documentation editor query update and Generate model

jagomezdiez avatar Sep 14 '23 05:09 jagomezdiez

Is this still an issue? If so, please reopen.

mdesmet avatar Sep 17 '24 21:09 mdesmet