<?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 Is it possible to migrate SQL Objects from one workspace to  another? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-migrate-sql-objects-from-one-workspace-to/m-p/55579#M30372</link>
    <description>&lt;P&gt;We have SQL Queries and dashboards in workspace dev_01. New workspace dev_02 is created and unity catalog is enabled.&lt;/P&gt;&lt;P&gt;I was able to migrate jobs, clusters, DLTs, SQL warehouses, users using APIs. But, while migrating queries using APIs, I can't get them to the same user folder as in dev_01. I am facing error saying 'no parent folder'. When I ignore this parameter, the queries are being created in my workspace folder instead of workspace of actual creator of that query. Is there a way to get queries into dev_02 and into same user folders as in dev_01?&lt;/P&gt;&lt;P&gt;The same question for SQL dashboards also. Is it possible to migrate them to dev_02 seemlessly?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2023 04:41:59 GMT</pubDate>
    <dc:creator>valjas</dc:creator>
    <dc:date>2023-12-21T04:41:59Z</dc:date>
    <item>
      <title>Is it possible to migrate SQL Objects from one workspace to  another?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-migrate-sql-objects-from-one-workspace-to/m-p/55579#M30372</link>
      <description>&lt;P&gt;We have SQL Queries and dashboards in workspace dev_01. New workspace dev_02 is created and unity catalog is enabled.&lt;/P&gt;&lt;P&gt;I was able to migrate jobs, clusters, DLTs, SQL warehouses, users using APIs. But, while migrating queries using APIs, I can't get them to the same user folder as in dev_01. I am facing error saying 'no parent folder'. When I ignore this parameter, the queries are being created in my workspace folder instead of workspace of actual creator of that query. Is there a way to get queries into dev_02 and into same user folders as in dev_01?&lt;/P&gt;&lt;P&gt;The same question for SQL dashboards also. Is it possible to migrate them to dev_02 seemlessly?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 04:41:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-migrate-sql-objects-from-one-workspace-to/m-p/55579#M30372</guid>
      <dc:creator>valjas</dc:creator>
      <dc:date>2023-12-21T04:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to migrate SQL Objects from one workspace to  another?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-migrate-sql-objects-from-one-workspace-to/m-p/61160#M31725</link>
      <description>&lt;P&gt;I'm doing something similar, but I haven't run into this parent directory issue. [Actually to be clear I ran into an issue around missing user directories, but I believe that was different than what you describe]. Before migrating the queries, I'm recreating the workspace directories from the original workspace within the new workspace (really I'm going from one tenant to another, but I believe our experiences are still the same). I then create a map between ids of corresponding directories and use this map to create queries in the correct corresponding directory.&amp;nbsp; For the workspace directories I'm using these two endpoints:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/api/workspace/workspace/list" target="_blank" rel="noopener"&gt;https://docs.databricks.com/api/workspace/workspace/list&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/api/workspace/workspace/mkdirs" target="_blank" rel="noopener"&gt;https://docs.databricks.com/api/workspace/workspace/mkdirs&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You mentioned you are using APIs to move the queries, but just to be clear, I'm using these endpoints:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/api/workspace/queries/list" target="_blank" rel="noopener"&gt;https://docs.databricks.com/api/workspace/queries/list&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/api/workspace/queries/create" target="_blank" rel="noopener"&gt;https://docs.databricks.com/api/workspace/queries/create&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Are you doing something similar?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 18:27:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-migrate-sql-objects-from-one-workspace-to/m-p/61160#M31725</guid>
      <dc:creator>jcoggs</dc:creator>
      <dc:date>2024-02-19T18:27:04Z</dc:date>
    </item>
  </channel>
</rss>

