<?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: Upload file to DBFS fails with error code 0 in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/upload-file-to-dbfs-fails-with-error-code-0/m-p/119152#M45806</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/19161"&gt;@PramodNaik&lt;/a&gt;&lt;/P&gt;&lt;P&gt;The error you are facing not because of file size but because the file you are trying to upload contains &lt;STRONG&gt;PII or SPII data&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;words like dob, Token, accesskey, password..,etc.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LokeshManne_1-1747218087347.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/16820i3260AC597F7BB9A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LokeshManne_1-1747218087347.png" alt="LokeshManne_1-1747218087347.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution:&amp;nbsp;&lt;/STRONG&gt;Rename such data like date_of_birth, token_no, access_key, default_password,..etc. It will upload now.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you're not able to find the data which is restricted by databricks&lt;/STRONG&gt; policy and throwing above exception, you can cut the file half and try to upload in first half of the set, But before that &lt;STRONG&gt;initially you try to upload with single row of data&lt;/STRONG&gt;, if it fails the columns contain the PII/SPII data, if it succeed which means the rows contain PII/SPII data so now try uploading incrementally untill the databricks throws the error. you try to upload with &lt;STRONG&gt;first half set&lt;/STRONG&gt; of data if it throws an error, which mean there is an PII/SPII data in the fist half and again split the first half into half and upload, if it throws an error then again do the same untill no error,&amp;nbsp;&lt;STRONG&gt;Case 1:&lt;/STRONG&gt;&lt;SPAN&gt; the row where the error throws is the data you need to update.&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Case 2: &lt;/STRONG&gt;when the part o the file uploads successfully, which means there is no error in that part(fist half or second half)&lt;/P&gt;</description>
    <pubDate>Wed, 14 May 2025 10:21:48 GMT</pubDate>
    <dc:creator>LokeshManne</dc:creator>
    <dc:date>2025-05-14T10:21:48Z</dc:date>
    <item>
      <title>Upload file to DBFS fails with error code 0</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-file-to-dbfs-fails-with-error-code-0/m-p/17559#M11556</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;When trying to upload to DBFS from local machine getting error as "Error occurred when processing file ... : Server responded with 0 code"&lt;/P&gt;
&lt;P&gt;DBR 7.3 LTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Spark 3.0.1
&lt;P&gt;Scala 2.12&lt;/P&gt;
&lt;P&gt;Uploading the file using the "upload" in the Databricks cloud console, the cp through Databricks-cli does not respond.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 14:20:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-file-to-dbfs-fails-with-error-code-0/m-p/17559#M11556</guid>
      <dc:creator>hravilla</dc:creator>
      <dc:date>2021-07-19T14:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file to DBFS fails with error code 0</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-file-to-dbfs-fails-with-error-code-0/m-p/17560#M11557</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Even I am facing the same issue with GCP databricks. I am able to upload files with smaller size. When i tried with 3MB file, databricks chokes. I get the above error. &lt;/P&gt;
&lt;P&gt;I tried with aws databricks, it works good even for bigger size files.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 07:20:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-file-to-dbfs-fails-with-error-code-0/m-p/17560#M11557</guid>
      <dc:creator>PramodNaik</dc:creator>
      <dc:date>2021-07-22T07:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file to DBFS fails with error code 0</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-file-to-dbfs-fails-with-error-code-0/m-p/119152#M45806</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/19161"&gt;@PramodNaik&lt;/a&gt;&lt;/P&gt;&lt;P&gt;The error you are facing not because of file size but because the file you are trying to upload contains &lt;STRONG&gt;PII or SPII data&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;words like dob, Token, accesskey, password..,etc.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LokeshManne_1-1747218087347.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/16820i3260AC597F7BB9A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LokeshManne_1-1747218087347.png" alt="LokeshManne_1-1747218087347.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution:&amp;nbsp;&lt;/STRONG&gt;Rename such data like date_of_birth, token_no, access_key, default_password,..etc. It will upload now.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you're not able to find the data which is restricted by databricks&lt;/STRONG&gt; policy and throwing above exception, you can cut the file half and try to upload in first half of the set, But before that &lt;STRONG&gt;initially you try to upload with single row of data&lt;/STRONG&gt;, if it fails the columns contain the PII/SPII data, if it succeed which means the rows contain PII/SPII data so now try uploading incrementally untill the databricks throws the error. you try to upload with &lt;STRONG&gt;first half set&lt;/STRONG&gt; of data if it throws an error, which mean there is an PII/SPII data in the fist half and again split the first half into half and upload, if it throws an error then again do the same untill no error,&amp;nbsp;&lt;STRONG&gt;Case 1:&lt;/STRONG&gt;&lt;SPAN&gt; the row where the error throws is the data you need to update.&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Case 2: &lt;/STRONG&gt;when the part o the file uploads successfully, which means there is no error in that part(fist half or second half)&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 10:21:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-file-to-dbfs-fails-with-error-code-0/m-p/119152#M45806</guid>
      <dc:creator>LokeshManne</dc:creator>
      <dc:date>2025-05-14T10:21:48Z</dc:date>
    </item>
  </channel>
</rss>

