<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Loading tables to gold, one loads and the other two fail but same process. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/loading-tables-to-gold-one-loads-and-the-other-two-fail-but-same/m-p/9981#M5239</link>
    <description>&lt;P&gt;Hi team, I am still fairly new to working with delta tables. I have created a df by reading in data from existing silver tables in my lakehouse. I read in the silver tables usiung sql into a workbook, do some manipulation, unnest some fiels and then attempt to load as gold dlt tables. One of my gold tables works and the other two fail with the error&lt;B&gt; 'cannot create ... because managed table already exists'&lt;/B&gt;. Any tips, tricks, advice on  how to handle this. My dlt load looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;@dlt.table(comment='gold_users processed from silver platform users table to create gold tables ready for aggregation.' &lt;/P&gt;&lt;P&gt;               )&lt;/P&gt;&lt;P&gt;def gold_users():&lt;/P&gt;&lt;P&gt;    return users_df/&amp;gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 09:27:37 GMT</pubDate>
    <dc:creator>190809</dc:creator>
    <dc:date>2023-02-06T09:27:37Z</dc:date>
    <item>
      <title>Loading tables to gold, one loads and the other two fail but same process.</title>
      <link>https://community.databricks.com/t5/data-engineering/loading-tables-to-gold-one-loads-and-the-other-two-fail-but-same/m-p/9981#M5239</link>
      <description>&lt;P&gt;Hi team, I am still fairly new to working with delta tables. I have created a df by reading in data from existing silver tables in my lakehouse. I read in the silver tables usiung sql into a workbook, do some manipulation, unnest some fiels and then attempt to load as gold dlt tables. One of my gold tables works and the other two fail with the error&lt;B&gt; 'cannot create ... because managed table already exists'&lt;/B&gt;. Any tips, tricks, advice on  how to handle this. My dlt load looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;@dlt.table(comment='gold_users processed from silver platform users table to create gold tables ready for aggregation.' &lt;/P&gt;&lt;P&gt;               )&lt;/P&gt;&lt;P&gt;def gold_users():&lt;/P&gt;&lt;P&gt;    return users_df/&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 09:27:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/loading-tables-to-gold-one-loads-and-the-other-two-fail-but-same/m-p/9981#M5239</guid>
      <dc:creator>190809</dc:creator>
      <dc:date>2023-02-06T09:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loading tables to gold, one loads and the other two fail but same process.</title>
      <link>https://community.databricks.com/t5/data-engineering/loading-tables-to-gold-one-loads-and-the-other-two-fail-but-same/m-p/9982#M5240</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;It seems like there is already a managed table with same name.&lt;/P&gt;&lt;P&gt;If you want to anyhow write you need to remove first exist table with same name or if your schema is same you can append data to table.&lt;/P&gt;&lt;P&gt;To remove existing table you can use dbutils.fs.rm('path',True)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 11:40:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/loading-tables-to-gold-one-loads-and-the-other-two-fail-but-same/m-p/9982#M5240</guid>
      <dc:creator>ChaubeyPravin</dc:creator>
      <dc:date>2023-02-07T11:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Loading tables to gold, one loads and the other two fail but same process.</title>
      <link>https://community.databricks.com/t5/data-engineering/loading-tables-to-gold-one-loads-and-the-other-two-fail-but-same/m-p/9983#M5241</link>
      <description>&lt;P&gt;Hi @Pravin Chaubey​&amp;nbsp;thanks for responding. I discovered the issue. I had to load them as unmanaged tables but had previously not specified a path when doing .saveAsTable() and so those two tables that were failing to load were in fact managed tables as you said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 12:27:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/loading-tables-to-gold-one-loads-and-the-other-two-fail-but-same/m-p/9983#M5241</guid>
      <dc:creator>190809</dc:creator>
      <dc:date>2023-02-07T12:27:34Z</dc:date>
    </item>
  </channel>
</rss>

