<?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: DeltaTable.forName Doesn't work outside of default schema in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4756279#M10733</link>
    <description>&lt;P&gt;For that, You should always use bronze and silver layer. We don't need a Gold layer. Make as simple as you can to visualize your data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bronze Table = Raw data and then silver table use materilized lake view to get an Extract, Transform and Load ( LEFT JOIN ) and For Semantic Model, Use Direct Lake to get your data in Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Silver table, Nowadays Materilized Lake Views is available in silver table.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jul 2025 09:36:10 GMT</pubDate>
    <dc:creator>BhaveshPatel</dc:creator>
    <dc:date>2025-07-08T09:36:10Z</dc:date>
    <item>
      <title>DeltaTable.forName Doesn't work outside of default schema</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4752122#M10598</link>
      <description>&lt;P&gt;I have been using&amp;nbsp;DeltaTable.forName within a function to merge some data into a delta table in a lakehouse. When i don't pass the schema and defaults to dbo the function works correctly. However when i try using a custom schema it fails. The work around seems to be using forPath but should forName work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gold_table_name&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN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sp;gold_table_name = "`xyz.abc`" but nothing seems to work. Using forPath isn't as clean as teh table is registered in the catalog.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jul 2025 10:55:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4752122#M10598</guid>
      <dc:creator>higgy7</dc:creator>
      <dc:date>2025-07-03T10:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaTable.forName Doesn't work outside of default schema</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4752501#M10612</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397781" data-lia-user-login="higgy7" class="lia-mention lia-mention-user"&gt;higgy7&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Have you tried setting the current db before calling forName?&lt;BR /&gt;It may help to set the schema name(xyz), then calling forName.&lt;BR /&gt;spark.catalog.setCurrentDatabase(schema) --&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;spark.catalog.setCurrentDatabase("xyz")&lt;BR /&gt;gold_df = DeltaTable.forName(spark, "abc")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/mehrdad-abdollahi-730250131/" target="_self"&gt;Mehrdad Abdollahi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 16:26:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4752501#M10612</guid>
      <dc:creator>mabdollahi</dc:creator>
      <dc:date>2025-07-03T16:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaTable.forName Doesn't work outside of default schema</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4753271#M10636</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397781" data-lia-user-login="higgy7" class="lia-mention lia-mention-user"&gt;higgy7&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Microsoft fabric community forum.&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="742413" data-lia-user-login="mabdollahi" class="lia-mention lia-mention-user"&gt;mabdollahi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your prompt response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397781" data-lia-user-login="higgy7" class="lia-mention lia-mention-user"&gt;higgy7&lt;/a&gt;&amp;nbsp;You're right, DeltaTable.forName("abc") works when the table is in the default schema like dbo, but if you're using a custom schema like xyz.abc, it might fail unless you include the full path including the catalog. In environments like Microsoft Fabric, you may need to write it as DeltaTable.forName("lakehouse.xyz.abc") where lakehouse is the catalog, xyz is your schema, and abc is the table. If you're not sure what the catalog is, you can try checking with SHOW TABLES IN xyz. If nothing else works, forPath() is a good backup, but forName() is better if the table is registered in the catalog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/tables/schema-enforcement" target="_blank"&gt;Schema enforcement - Azure Databricks | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-schemas" target="_blank"&gt;Lakehouse schemas (Preview) - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Engineering/merge-or-update-insert-lakehouse-table-from-another-lakehouse/m-p/4383394" target="_blank"&gt;Solved: merge or update/insert lakehouse table from anothe... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you're still facing challenges, feel free to let us know we’ll be glad to assist you further.&lt;/P&gt;
&lt;P&gt;Looking forward to your response.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Best regards,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LakshmiNarayana.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 10:57:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4753271#M10636</guid>
      <dc:creator>v-lgarikapat</dc:creator>
      <dc:date>2025-07-04T10:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaTable.forName Doesn't work outside of default schema</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4754912#M10678</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397781" data-lia-user-login="higgy7" class="lia-mention lia-mention-user"&gt;higgy7&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="154" data-end="345"&gt;I wanted to follow up and confirm whether you’ve had a chance to review the information we shared. If you have any questions or need further clarification, please don’t hesitate to reach out.&lt;/P&gt;
&lt;P data-start="347" data-end="454"&gt;If you're still encountering any challenges, feel free to let us know — we’d be glad to assist you further.&lt;/P&gt;
&lt;P data-start="456" data-end="489"&gt;Looking forward to your response.&lt;/P&gt;
&lt;P data-start="456" data-end="489"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="491" data-end="518"&gt;&lt;STRONG&gt;Best regards,&lt;/STRONG&gt;&lt;BR data-start="504" data-end="507" /&gt;&lt;STRONG&gt;Lakshmi Narayana&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 09:10:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4754912#M10678</guid>
      <dc:creator>v-lgarikapat</dc:creator>
      <dc:date>2025-07-07T09:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaTable.forName Doesn't work outside of default schema</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4756279#M10733</link>
      <description>&lt;P&gt;For that, You should always use bronze and silver layer. We don't need a Gold layer. Make as simple as you can to visualize your data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bronze Table = Raw data and then silver table use materilized lake view to get an Extract, Transform and Load ( LEFT JOIN ) and For Semantic Model, Use Direct Lake to get your data in Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Silver table, Nowadays Materilized Lake Views is available in silver table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 09:36:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4756279#M10733</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2025-07-08T09:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaTable.forName Doesn't work outside of default schema</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4756396#M10735</link>
      <description>&lt;P&gt;Hi, I should expand further on my issues. When using the 3 part name with the forName i can see that it does work. Howveer i run into more issues when trying to use this in conjuction with .merge. Attached is my latest attempt, where i have tried to set the current database. I have also tried using the catalog, scheema and tabe for the gold table name but ran into the same issue.&amp;nbsp; I get this error:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;IllegalArgumentException&lt;/SPAN&gt;&lt;SPAN&gt;: java.io.IOException: Invalid input length 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 11:03:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4756396#M10735</guid>
      <dc:creator>higgy7</dc:creator>
      <dc:date>2025-07-08T11:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaTable.forName Doesn't work outside of default schema</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4757535#M10768</link>
      <description>&lt;P&gt;As an update on this.&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;The issue seems to be when i try and use this in conjunction with .merge. The screenshot shows my inputs and my function. When i call it the first time it will run the else and will be successful. However on the second run when the table actually exists. i get the attached error. When i have a search for this error it says DeltaTable.forName&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;doesn't accept a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;dot-qualified&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;name so how can i pass the fully qualified name?&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;The issue seems to be when i try and use this in conjunction with .merge. The screenshot shows my inputs and my function. When i call it the first time it will run the else and will be successful. However on the second run when the table actually exists. i get the attached error. When i have a search for this error it says DeltaTable.forName&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;doesn't accept a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;dot-qualified&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;name so how can i pass the fully qualified name?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;&lt;SPAN&gt;i have used co-pilot and found a workaround. forName DOES NOT seem to work as all. However if i modify the function as seen in the image the path will now work but i would say this is a work around rather than a solution. Is forPath the only solution adn forName just will not work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 09:03:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4757535#M10768</guid>
      <dc:creator>higgy7</dc:creator>
      <dc:date>2025-07-09T09:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaTable.forName Doesn't work outside of default schema</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4757873#M10780</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397781" data-lia-user-login="higgy7" class="lia-mention lia-mention-user"&gt;higgy7&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the confirmation and for sharing the workaround. It's really appreciated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use forName if your tables are persistently registered, especially in a controlled catalog environment.&lt;/P&gt;
&lt;P&gt;Use forPath when working with raw or temporary data or when you want to avoid catalog dependencies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please consider the &lt;STRONG&gt;Accepted Solution &lt;/STRONG&gt;. This not only acknowledges the support provided but also helps other community members find relevant solutions more easily.&lt;/P&gt;
&lt;P&gt;We appreciate your engagement and thank you for being an active part of the community.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Best regards,&lt;BR /&gt;LakshmiNarayana&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 14:42:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4757873#M10780</guid>
      <dc:creator>v-lgarikapat</dc:creator>
      <dc:date>2025-07-09T14:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaTable.forName Doesn't work outside of default schema</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4757877#M10781</link>
      <description>&lt;P&gt;Hi Lakshmi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So from my testing &lt;EM&gt;"&amp;nbsp;In environments like Microsoft Fabric, you may need to write it as DeltaTable.forName("lakehouse.xyz.abc") where lakehouse is the catalog, xyz is your schema, and abc is the table."&amp;nbsp;&lt;/EM&gt;will not work as&amp;nbsp;&lt;SPAN&gt;DeltaTable.forName&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;doesn't accept a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;dot-qualified&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;name&amp;nbsp;therefore there is no way to use a fully qualified catalog.schema.table in Fabric even if the table is registered and a managed table within the tables folder? The only option outside of the default schema is to use the forPath?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 14:47:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/DeltaTable-forName-Doesn-t-work-outside-of-default-schema/m-p/4757877#M10781</guid>
      <dc:creator>higgy7</dc:creator>
      <dc:date>2025-07-09T14:47:33Z</dc:date>
    </item>
  </channel>
</rss>

