<?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: 400 error when accessing lakehouse files from notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4311272#M5456</link>
    <description>&lt;P&gt;I have the exact same problem and can't use the ABFS path because my notebooks are part of a deployment pipeline that changes the default lakehouse via deployment rule. So I totally rely on the default lakehouse being flexible.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 09:02:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-12-03T09:02:04Z</dc:date>
    <item>
      <title>400 error when accessing lakehouse files from notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4301647#M5354</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;Pretty much every day, I experience spurious errors when accessing (csv) files in a notebooks default lakehouse. By spurious, I mean that they may happen in one session, but then later the same day in a different session everything works absolutely fine.&lt;/P&gt;&lt;P&gt;In practice, the errors occur on statements like the following:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;df = spark.read.format("csv").option("header","true").option("delimiter",";").load("&amp;lt;path to a file in the notebooks default lakehouse&amp;gt;")&lt;/LI-CODE&gt;&lt;P&gt;The error message is something like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Py4JJavaError: An error occurred while calling o4753.load.
: Operation failed: "Bad Request", 400, HEAD, http://onelake.dfs.fabric.microsoft.com/xxx-xxx-xxx-xxx-xxx/user/trusted-service-user/Files/x/y/filename.csv?upn=false&amp;amp;action=getStatus&amp;amp;timeout=90&lt;/LI-CODE&gt;&lt;P&gt;Any idea what could be causing this, and if there's anything can do about it?&lt;/P&gt;&lt;P&gt;As bonus information, the account I am logging into Fabric with is a guest account in the Fabric tenant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 08:12:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4301647#M5354</guid>
      <dc:creator>SørenBrandt</dc:creator>
      <dc:date>2024-11-26T08:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: 400 error when accessing lakehouse files from notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4303749#M5383</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="807477" data-lia-user-login="SørenBrandt" class="lia-mention lia-mention-user"&gt;SørenBrandt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try reading the CSV file with&amp;nbsp;ABFS path instead and check whether this will be more reliable. This could avoid failures in a scenario that the default lakehouse might be changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jing&lt;BR /&gt;Community Support Team&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 08:34:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4303749#M5383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-27T08:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: 400 error when accessing lakehouse files from notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4309517#M5442</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thankyou for your suggestion &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;. I have changed to using the ABFS path, and right now it seems to be going through on first attempt. However, since this has been a bit unpredictable, I will keep trying to see if the problem has gone for good.&lt;/P&gt;&lt;P&gt;That said, the default lakehouse has not changed as far as I'm aware, so if this turns out to be the solution, then the root cause may be something else.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Søren&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 08:58:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4309517#M5442</guid>
      <dc:creator>SørenBrandt</dc:creator>
      <dc:date>2024-12-02T08:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: 400 error when accessing lakehouse files from notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4311272#M5456</link>
      <description>&lt;P&gt;I have the exact same problem and can't use the ABFS path because my notebooks are part of a deployment pipeline that changes the default lakehouse via deployment rule. So I totally rely on the default lakehouse being flexible.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 09:02:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4311272#M5456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-03T09:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: 400 error when accessing lakehouse files from notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4315016#M5500</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I feel like there might be some factors or issues that would cause the notebook session to fail to recognize the default lakehouse sometimes. Using the ABFS path is more stable because it directly specifies the absolute path of the lakehouse, rather than relying on the default lakehouse. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To improve the stability and reliability of reading the default lakehouse, you might try using the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;%%configure&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;command at the beginning of the notebook to explicitly specify a default lakehouse. This will take effect in the current session. This magic command is supported when running the notebook directly or as a notebook activity in a pipeline. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Reference&lt;/STRONG&gt;:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/author-execute-notebook#spark-session-configuration-magic-command" target="_blank" rel="noopener"&gt;Spark session configuration magic command&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Jing&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 09:30:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4315016#M5500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-05T09:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: 400 error when accessing lakehouse files from notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4315410#M5503</link>
      <description>&lt;P&gt;I too have seen this behavior with the default lakehouse.&amp;nbsp; In my case, it seemed to be cuased by another operation outside of Fabric processing the file, so to speak.&amp;nbsp; The csvs in my case are written by an external service within Business Central, which runs every 2 hours.&amp;nbsp; I needed to ensure that my notebook is only run&amp;nbsp;&lt;EM&gt;after&lt;/EM&gt; the write operation completed.&amp;nbsp; If the file was being written while the notebook was being run, I would get this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 16:10:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4315410#M5503</guid>
      <dc:creator>TheHetz</dc:creator>
      <dc:date>2024-12-09T16:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: 400 error when accessing lakehouse files from notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4719737#M9898</link>
      <description>&lt;P&gt;Excellent - thanks for pointing this out. I had the exact same scenario happening to me, and didn't think about that.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:31:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/400-error-when-accessing-lakehouse-files-from-notebook/m-p/4719737#M9898</guid>
      <dc:creator>FilipAi</dc:creator>
      <dc:date>2025-06-04T11:31:22Z</dc:date>
    </item>
  </channel>
</rss>

