<?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: Artifact not found when querying a table in a lakehouse using notebook in Fabric in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4279635#M5137</link>
    <description>&lt;P&gt;hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;, thanks for your following up on this. I couldn't resolve it. I had to create a lakehouse without the schema feature.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2024 10:03:30 GMT</pubDate>
    <dc:creator>eddy1980</dc:creator>
    <dc:date>2024-11-12T10:03:30Z</dc:date>
    <item>
      <title>Artifact not found when querying a table in a lakehouse using notebook in Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4273116#M5049</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am using the new lakehouse in fabric which support schema. When I run below code to query a table. I got below error message. I am able to open the table in the lakehouse and cannot query it in notebook.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Code in notebook:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df = spark.sql("&lt;/SPAN&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;SPAN&gt;FROM&lt;/SPAN&gt;&lt;SPAN&gt; Bronze_Lakehouse.dbo.Question ")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;display(df)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class=""&gt;Py4JJavaError&lt;/SPAN&gt;&lt;SPAN&gt;: An error occurred while calling o324.sql. : com.microsoft.fabric.spark.metadata.DoesNotExistException: Artifact not found: workspaceABC.bronze_lakehouse&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 23:19:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4273116#M5049</guid>
      <dc:creator>eddy1980</dc:creator>
      <dc:date>2024-11-06T23:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Artifact not found when querying a table in a lakehouse using notebook in Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4273214#M5051</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/839718"&gt;@eddy1980&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I test with your script and it works well on my side. Have you setting the default Lakehouse of the notebook to quick reference this resource? In addition, you can try to directly use the 'table name' in query string if current table is hosted in the default dbo schema.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1195403i2079D1FAE9B03D2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 01:55:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4273214#M5051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-07T01:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Artifact not found when querying a table in a lakehouse using notebook in Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4273260#M5052</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;. I tried your script and doesn't work. This issue only happened at our prod workspace in the Fabric. It works fine in the UAT workspace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, if I run below script to show the schema of the lakehouse, I got same error "Artifact not found". Please see the screenshot below.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;spark.sql("&lt;/SPAN&gt;&lt;SPAN&gt;SHOW&lt;/SPAN&gt; &lt;SPAN&gt;SCHEMAS&lt;/SPAN&gt;&lt;SPAN&gt;").show(&lt;/SPAN&gt;&lt;SPAN&gt;truncate&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guest it could be caused by the setting of workspace or lakehouse. I compared the setting of workspace between prod and uat. They are same. Is there a command I can run in the notebook to enable schema of a lakehouse?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eddy1980_0-1730945819423.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1195423i2A459BF7E58FA0A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="eddy1980_0-1730945819423.png" alt="eddy1980_0-1730945819423.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 02:24:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4273260#M5052</guid>
      <dc:creator>eddy1980</dc:creator>
      <dc:date>2024-11-07T02:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Artifact not found when querying a table in a lakehouse using notebook in Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4273279#M5053</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;. I ran your script and it didn't work. This issue only happened at our prod workspace. It works fine in uat and dev workspace.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, when I ran below script in the notebook. It also got same error.&amp;nbsp; Please see the screenshto below.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;spark.sql("&lt;/SPAN&gt;&lt;SPAN&gt;SHOW&lt;/SPAN&gt; &lt;SPAN&gt;SCHEMAS&lt;/SPAN&gt;&lt;SPAN&gt;").show(&lt;/SPAN&gt;&lt;SPAN&gt;truncate&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eddy1980_0-1730946518934.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1195440iC7134B2A910E6DE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="eddy1980_0-1730946518934.png" alt="eddy1980_0-1730946518934.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess it is caused by setting of prod workspace. However, when I compared it between uat and prod. It is same. Could you please further advise?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 02:32:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4273279#M5053</guid>
      <dc:creator>eddy1980</dc:creator>
      <dc:date>2024-11-07T02:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Artifact not found when querying a table in a lakehouse using notebook in Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4273556#M5059</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/839718"&gt;@eddy1980&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Current it seems not support directly switch from common lakehouse and schema lakehouse. &lt;BR /&gt;If you were working with common lakehouse tables, you can directly use pinned lakehouse table name without any other prefixed.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;df = spark.sql("SELECT * FROM Question ")
display(df)&lt;/LI-CODE&gt;
&lt;P&gt;In addition, I'm not so recommend you to add any special characters in the lakehouse, schema and table names, they may affect the query usages.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 07:19:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4273556#M5059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-07T07:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Artifact not found when querying a table in a lakehouse using notebook in Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4279403#M5134</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/839718"&gt;@eddy1980&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Any update on this? Did the above helps? If not, you can feel free to post here.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 07:56:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4279403#M5134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-12T07:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Artifact not found when querying a table in a lakehouse using notebook in Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4279635#M5137</link>
      <description>&lt;P&gt;hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;, thanks for your following up on this. I couldn't resolve it. I had to create a lakehouse without the schema feature.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 10:03:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4279635#M5137</guid>
      <dc:creator>eddy1980</dc:creator>
      <dc:date>2024-11-12T10:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Artifact not found when querying a table in a lakehouse using notebook in Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4285627#M5218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/839718"&gt;@eddy1980&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;In fact, I can run these code in both two lakehouses that enabled or not enabled schema: (I modify the code to remove the workspace and lakehouse prefix and setting the default lakehouse, invoke tables which existed in current default lakehouse)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;df = spark.sql("SELECT * FROM Question")
display(df)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Snapshots:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 760px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1200186i90BB32FC0B1C61FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 798px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1200185iCA859D2D0E6EDE3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BTW, did the lakehouse sql endpoint succeed generated and sync the tables from lakehouse that you used? If not, I'd like to suggest you report to dev to help check the root cause and fix it more quickly.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 06:36:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4285627#M5218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-20T06:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Artifact not found when querying a table in a lakehouse using notebook in Fabric</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4840399#M12662</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/839718"&gt;@eddy1980&lt;/a&gt;. I know this is almost a year old, however I just ran into this exact same error this week and found a solution. My sandbox environment ran fine using the schema-enabled lakehouse, however when I ran the exact same code in dev on the schema-enabled lakehouse the code failed. Same naming conventions and everything across objects. I got the same "Artifact not found" error, shown here. The same code attached to a regular lakehouse (without schemas) worked just fine.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mscollis_0-1759380446264.png" style="width: 640px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1301141i8F88D61036B2F81A/image-dimensions/640x40?v=v2" width="640" height="40" role="button" title="mscollis_0-1759380446264.png" alt="mscollis_0-1759380446264.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Digging in a little more, I ran this script in the dev environment to try and figure if something looked funny in the environment and I saw that the default workspace had this leading space in the name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mscollis_1-1759380751584.png" style="width: 650px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1301142iF34057E08D1030E7/image-dimensions/650x150?v=v2" width="650" height="150" role="button" title="mscollis_1-1759380751584.png" alt="mscollis_1-1759380751584.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As it turns out, somebody fat fingered the space in there when creating the workspace. There is a bug (or feature!) in the schema-enabled lakehouse that won't work with special characters, including spaces. This is actually mentioned near the top and also down at the bottom of the &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-schemas" target="_self"&gt;documentation for lakehouse schemas&lt;/A&gt;, which is somehow still in public preview after a year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I verified this by looking at the name side-by-side with the sandbox environment. Sure enough, there was the space shifting it over slightly. I can't believe I didn't notice it earlier.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mscollis_2-1759381177683.png" style="width: 422px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1301145i91EE96096F72F4DB/image-dimensions/422x147?v=v2" width="422" height="147" role="button" title="mscollis_2-1759381177683.png" alt="mscollis_2-1759381177683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I had our admin change the workspace name to remove the space, and bingo - the code ran fine afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope your problem has long since been solved, but in case you've been up at night randomly thinking about this problem from a year ago, maybe this will help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 05:03:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Artifact-not-found-when-querying-a-table-in-a-lakehouse-using/m-p/4840399#M12662</guid>
      <dc:creator>mscollis</dc:creator>
      <dc:date>2025-10-02T05:03:28Z</dc:date>
    </item>
  </channel>
</rss>

