cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

DLT managed by non-existent pipeline

daz
New Contributor III

I am building out a new DLT pipeline and have since had to rebuild it from scratch. Having deleted the old pipeline and constructed a new one I now get this error:

Table 'X' is already managed by pipeline 'Y'. 

As I only have the one pipeline how would this be possible? It implies deleting the pipeline did not delete all of the related assets or associations. The docs are a little thin on pipeline management.

9 REPLIES 9

daz
New Contributor III

Further to this I can see that there is reference to the old pipeline in the DBFS /pipelines/{Y}/... folder. My instincts tell me that this should have been removed with the interface action of pipeline deletion?

As time is precious I'm going to go ahead and do that with the CLI but not really sure I should/ should have to. It's only a test system after all so meh...

jose_gonzalez
Databricks Employee
Databricks Employee

daz
New Contributor III

Hi Jose,

thank you for the reply.

Yes, I did specify a target database. I expect that means they are published.

It's my first attempt at this process and I'm trying to settle on a suitable development approach. Would you suggest keeping everything localised unpublished until it's ready? Ultimately there will be occasions where it is necessary to remove everything and rebuild.

Yes, you can keep everything localized. You can just publish the tables other teams needs to access

Hubert-Dudek
Esteemed Contributor III

Please take a look at metastore as there can still be tables.

Deleting a pipeline will not delete data, so except mentioned tables, there can also be delta objects on Delta Lake storage (depends on how it was set)

Vidula
Honored Contributor

Hi there @Darron Smith​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

harvey-c
New Contributor III

Hi, there

I had exactly the same issue with unity catalog as target. Are there any solution to remove the association between table and non-exist pipeline?  Or where are the data of association stored?  I deleted all the files of the schema that contains the table but it was still not working.  

Thank you!

harvey-c
New Contributor III

If the tables are deleted with catalog explorer,the associated metadata are also deleted. Using SQL to drop the tables may not remove all unity catalog related data including the associated DLT pipeline

Shinaider777
New Contributor II

rename your function from @Dlt.table, for exemple:


@Dlt.table(
    comment="exemple",
    table_properties={"exemple": "exemple"},
    partition_cols=["a", "b", "c"]
)
def modify_this_name():

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group