<?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 Re: Declarative Automation Bundles Volume creation fails with CATALOG_DOES_NOT_EXIST on first deploy in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/declarative-automation-bundles-volume-creation-fails-with/m-p/152084#M53755</link>
    <description>&lt;P&gt;It works now, thanks a lot for your help&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2026 00:07:14 GMT</pubDate>
    <dc:creator>Luisbct</dc:creator>
    <dc:date>2026-03-26T00:07:14Z</dc:date>
    <item>
      <title>Declarative Automation Bundles Volume creation fails with CATALOG_DOES_NOT_EXIST on first deploy</title>
      <link>https://community.databricks.com/t5/data-engineering/declarative-automation-bundles-volume-creation-fails-with/m-p/151920#M53728</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm working with &lt;STRONG&gt;DAB&lt;/STRONG&gt;, and I'm running into a deployment ordering issue.&lt;/P&gt;&lt;P&gt;On my first deploy, I get this error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error: cannot create resources.volumes.raw_data: Catalog 'mycatalog_prod' does not exist. (404 CATALOG_DOES_NOT_EXIST)

Endpoint: POST /api/2.1/unity-catalog/volumes
HTTP Status: 404 Not Found&lt;/LI-CODE&gt;&lt;P&gt;But all the other resources (catalog,external locations, schemas) are created without problems.&lt;/P&gt;&lt;P&gt;However, when I run the exact same command a second time:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATABRICKS_BUNDLE_ENGINE=direct databricks bundle deploy&lt;/LI-CODE&gt;&lt;P&gt;it succeeds without any errors.&lt;/P&gt;&lt;P&gt;I have my resources split in multiple yml files:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;catalog.yml&lt;/LI&gt;&lt;LI&gt;external_locations.yml&lt;/LI&gt;&lt;LI&gt;schemas.yml&lt;/LI&gt;&lt;LI&gt;volumes.yml&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My Volumen resource is like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
  volumes:
    raw_data:
      catalog_name: ${var.catalog}
      name: raw_data
      schema_name: staging
      volume_type: EXTERNAL
      storage_location: abfss://staging@stdatatest.dfs.core.windows.net/data/
      grants:
        - principal: mygroup
          privileges:
             - MANAGE&lt;/LI-CODE&gt;&lt;P&gt;I tried change the ${var.catalog} to "mycatalog_prod" but didn't work&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this expected behavior due to resource creation order in&lt;STRONG&gt; DAB&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2026 05:57:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/declarative-automation-bundles-volume-creation-fails-with/m-p/151920#M53728</guid>
      <dc:creator>Luisbct</dc:creator>
      <dc:date>2026-03-25T05:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Declarative Automation Bundles Volume creation fails with CATALOG_DOES_NOT_EXIST on first deploy</title>
      <link>https://community.databricks.com/t5/data-engineering/declarative-automation-bundles-volume-creation-fails-with/m-p/151976#M53730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/222831"&gt;@Luisbct&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p8i6j01 paragraph"&gt;Looks like an ordering/dependency issue rather than a problem with your variable value.&lt;/P&gt;
&lt;P class="p8i6j01 paragraph"&gt;&lt;SPAN&gt;The way you have defined your volume resource&amp;nbsp;gives bundles only a string for catalog_name, so with the direct engine it can try to create the volume before the catalog exists on the very first deploy, which likely leads to CATALOG_DOES_NOT_EXIST.&lt;/SPAN&gt;&lt;SPAN&gt; On the second deploy the catalog is already there, so it passes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Can you try changing it so the volume explicitly depends on the catalog resource instead of the variable, e.g.,:&lt;/P&gt;
&lt;DIV class="l8rrz21 _1ibi0s3dn" data-ui-element="code-block-container"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-yaml p8i6j0e hljs language-yaml _12n1b832"&gt;&lt;SPAN class="hljs-comment"&gt;# catalog.yml&lt;/SPAN&gt;
&lt;SPAN class="hljs-attr"&gt;resources:&lt;/SPAN&gt;
  &lt;SPAN class="hljs-attr"&gt;catalogs:&lt;/SPAN&gt;
    &lt;SPAN class="hljs-attr"&gt;mycatalog_prod:&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;name:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;mycatalog_prod&lt;/SPAN&gt;

&lt;SPAN class="hljs-comment"&gt;# schemas.yml&lt;/SPAN&gt;
&lt;SPAN class="hljs-attr"&gt;resources:&lt;/SPAN&gt;
  &lt;SPAN class="hljs-attr"&gt;schemas:&lt;/SPAN&gt;
    &lt;SPAN class="hljs-attr"&gt;staging:&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;name:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;staging&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;catalog_name:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;${resources.catalogs.mycatalog_prod.name}&lt;/SPAN&gt;

&lt;SPAN class="hljs-comment"&gt;# volumes.yml&lt;/SPAN&gt;
&lt;SPAN class="hljs-attr"&gt;resources:&lt;/SPAN&gt;
  &lt;SPAN class="hljs-attr"&gt;volumes:&lt;/SPAN&gt;
    &lt;SPAN class="hljs-attr"&gt;raw_data:&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;catalog_name:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;${resources.catalogs.mycatalog_prod.name}&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;schema_name:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;staging&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;name:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;raw_data&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;volume_type:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;EXTERNAL&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;storage_location:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;abfss://staging@stdatatest.dfs.core.windows.net/data/&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;grants:&lt;/SPAN&gt;
        &lt;SPAN class="hljs-bullet"&gt;-&lt;/SPAN&gt; &lt;SPAN class="hljs-attr"&gt;principal:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;mygroup&lt;/SPAN&gt;
          &lt;SPAN class="hljs-attr"&gt;privileges:&lt;/SPAN&gt;
            &lt;SPAN class="hljs-bullet"&gt;-&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;MANAGE&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;
&lt;DIV&gt;You may also want to make sure you’re using the direct bundle engine (as you are with DATABRICKS_BUNDLE_ENGINE=direct), which is required for catalogs/volumes defined in bundles.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Run &lt;/SPAN&gt;&lt;STRONG&gt;databricks bundle validate --output json &lt;/STRONG&gt;&lt;SPAN&gt;and confirm &lt;/SPAN&gt;catalog_name for the volume is resolving to mycatalog_prod via resources.catalogs.mycatalog_prod.name.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;After you wire the dependency this way, the first bundle deploy should create catalog --&amp;gt; schema --&amp;gt; volume in the right order and stop needing the second run.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2026 09:14:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/declarative-automation-bundles-volume-creation-fails-with/m-p/151976#M53730</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-03-25T09:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Declarative Automation Bundles Volume creation fails with CATALOG_DOES_NOT_EXIST on first deploy</title>
      <link>https://community.databricks.com/t5/data-engineering/declarative-automation-bundles-volume-creation-fails-with/m-p/152084#M53755</link>
      <description>&lt;P&gt;It works now, thanks a lot for your help&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 00:07:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/declarative-automation-bundles-volume-creation-fails-with/m-p/152084#M53755</guid>
      <dc:creator>Luisbct</dc:creator>
      <dc:date>2026-03-26T00:07:14Z</dc:date>
    </item>
  </channel>
</rss>

