<?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: Loading delta tables into a lakehouse in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/4736566#M10268</link>
    <description>&lt;P&gt;Hi, I had the same problem and its just when you try to load the dataset to Delta Table from UI, its forcing us to use a proper format for column headers with no spaces or special character.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can solve this problem by using a notebook&lt;/P&gt;&lt;P&gt;Load the csv into a pandas df and write it with&amp;nbsp;&lt;SPAN&gt;delta.columnMapping.mode"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"name" which lets the df to write into a Table with spaces in column headers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;```&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; pandas &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; pd&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Load data into pandas DataFrame from "/lakehouse/default/Files/metadata.csv"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df = pd.read_csv(&lt;/SPAN&gt;&lt;SPAN&gt;"/lakehouse/default/Files/metadata.csv"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;display(df)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;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 19 Jun 2025 00:43:57 GMT</pubDate>
    <dc:creator>swapnasam</dc:creator>
    <dc:date>2025-06-19T00:43:57Z</dc:date>
    <item>
      <title>Loading delta tables into a lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/3919858#M2045</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please HELP, I am new to fabric and struggling to load my files to delta tables in a lakehouse.&lt;/P&gt;&lt;P&gt;once uploading my data file (in CSV.) format and then Load to tables it gives an error regarding my CSV headers see below.&lt;/P&gt;&lt;P&gt;I don't know what else to do as it allows me to load delta tables without the headers. Please help&lt;/P&gt;&lt;P&gt;Server Error.&lt;BR /&gt;Message: Invalid column name(s) 'OnBDQ;Onshortregimen;RegimenType;RegistrationYear;Type;DRTBUnit;DRTBProvince;DRTBSubDistrict;DRTBDistrict;PreviousDrug;Gender;TreatmentOutcome' in file 'Files/Sedibengdata2.csv'. Column names must contain UTF-8 encoded Unicode word characters and can be a maximum of 128 characters long. Unicode word characters include letters of any case and their nonspacing marks, punctuation connectors like the underscore(_), and decimal digits, but no space characters are allowed.&lt;BR /&gt;Activity Id (Failed Request) : 23167694-e0ee-47d6-b79f-d85d20abbce1&lt;BR /&gt;Error Code : InvalidColumnName&lt;BR /&gt;HTTP response code : 400&lt;BR /&gt;User session Id : 696e2c1f-1ad3-4590-b9c8-485da94199d0&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 08:16:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/3919858#M2045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-15T08:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Loading delta tables into a lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/3920067#M2046</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message you received indicates that there are invalid column names in your CSV file.&amp;nbsp;&lt;SPAN&gt;Specifically, the column names listed include characters that do not meet the requirements for Delta tables. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Delta tables expect column names to be UTF-8 encoded Unicode word characters, which means they can include letters (of any case), nonspacing marks, punctuation connectors (like underscores), and decimal digits. However, spaces are not allowed. To resolve this, ensure that your CSV file’s column headers adhere to these rules.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Table names must contain alphanumeric characters and underscores. Column names allow any English letters (upper or lower case), underscores, and characters from other languages (such as Chinese) in UTF, up to 32 characters. If a proper column name cannot be achieved during validation, the load action will fail.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this information helps. Please do let us know if you have any further queries.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 09:15:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/3920067#M2046</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-05-15T09:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Loading delta tables into a lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/3920173#M2047</link>
      <description>&lt;P&gt;Thanks for the help, how do I ensure that my headers are&amp;nbsp;&lt;SPAN&gt;UTF-8 encoded Unicode word characters? I am so lost, thank you for the explanation above.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 09:54:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/3920173#M2047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-15T09:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Loading delta tables into a lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/3930011#M2059</link>
      <description>&lt;P&gt;I'm pretty sure your issue is that your column names contain spaces, i.e. Customer Name. You'll need to go through the list of columns and replace the spaces, either CustomerName or Customer_Name are both valid.&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2024 22:07:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/3930011#M2059</guid>
      <dc:creator>MartinMason</dc:creator>
      <dc:date>2024-05-18T22:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loading delta tables into a lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/3939918#M2103</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was also struggling with exact same error msg. My headers followed requirements exactly as UTF-8 demands, but still got the error msg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turns out I had to specify my column-seperator a.k.a. delimiter in the prompt when selecting the three dots near the file &amp;gt; "Load file in new table" then enter de correct delimiter used in your .csv-file, in my case a comma (,) was pre-filled in the prompt, but my .csv-file used (;) so had to adjust that one and load was succesfull!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below screencap (sorry it's in Dutch-UI)&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 13:20:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/3939918#M2103</guid>
      <dc:creator>BartStens</dc:creator>
      <dc:date>2024-05-22T13:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Loading delta tables into a lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/4736566#M10268</link>
      <description>&lt;P&gt;Hi, I had the same problem and its just when you try to load the dataset to Delta Table from UI, its forcing us to use a proper format for column headers with no spaces or special character.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can solve this problem by using a notebook&lt;/P&gt;&lt;P&gt;Load the csv into a pandas df and write it with&amp;nbsp;&lt;SPAN&gt;delta.columnMapping.mode"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"name" which lets the df to write into a Table with spaces in column headers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;```&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; pandas &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; pd&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Load data into pandas DataFrame from "/lakehouse/default/Files/metadata.csv"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SP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;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Jun 2025 00:43:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-delta-tables-into-a-lakehouse/m-p/4736566#M10268</guid>
      <dc:creator>swapnasam</dc:creator>
      <dc:date>2025-06-19T00:43:57Z</dc:date>
    </item>
  </channel>
</rss>

