<?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: Lakehouse to SQL Endpoint keeps giving error in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3827921#M1407</link>
    <description>&lt;P&gt;I appreciate the help from you all. I atually endedup figuring out how to make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the following code through some researchonto it and it ended up working. I think my columns had some spaces or something at the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; pyspark.sql.functions &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; col&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;def&lt;/SPAN&gt; &lt;SPAN&gt;remove_bda_chars_from_columns&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;df: (&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;df.select([col(x).alias(x.replace(&lt;/SPAN&gt;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"_"&lt;/SPAN&gt;&lt;SPAN&gt;).replace(&lt;/SPAN&gt;&lt;SPAN&gt;"/"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;).replace(&lt;/SPAN&gt;&lt;SPAN&gt;"%"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"pct"&lt;/SPAN&gt;&lt;SPAN&gt;).replace(&lt;/SPAN&gt;&lt;SPAN&gt;"("&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;).replace(&lt;/SPAN&gt;&lt;SPAN&gt;")"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;)) &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; x &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; df.columns])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SalesDocs_DF = SalesDocs_DF.transform(&lt;/SPAN&gt;&lt;SPAN&gt;lambda&lt;/SPAN&gt; &lt;SPAN&gt;df&lt;/SPAN&gt;&lt;SPAN&gt;: remove_bda_chars_from_columns(df))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 10 Apr 2024 15:15:48 GMT</pubDate>
    <dc:creator>ghernandezmf</dc:creator>
    <dc:date>2024-04-10T15:15:48Z</dc:date>
    <item>
      <title>Lakehouse to SQL Endpoint keeps giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3824716#M1404</link>
      <description>&lt;P&gt;I am having an issue building delta files through a notebook and having it populate the SQL Endpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code to create the delta table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;SalesDocs_DF.write.format(&lt;/SPAN&gt;&lt;SPAN&gt;'delta'&lt;/SPAN&gt;&lt;SPAN&gt;).mode(&lt;/SPAN&gt;&lt;SPAN&gt;'overwrite'&lt;/SPAN&gt;&lt;SPAN&gt;).save(&lt;/SPAN&gt;&lt;SPAN&gt;'Tables/Sales_Inventory'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;When I try to convert to SQL Endpoint I get the following Error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Table uses column mapping which is not supported.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Corrective Action: Recreate the table without column mapping property.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I even tried to query through a data warehouse and I cannot access the delta table I made through a notebook. I am not sure what I am doing wrong here.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 19:47:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3824716#M1404</guid>
      <dc:creator>ghernandezmf</dc:creator>
      <dc:date>2024-04-09T19:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse to SQL Endpoint keeps giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3826851#M1405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/721294"&gt;@ghernandezmf&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Can you please help me understand? &lt;BR /&gt;What all types of transformation operations are performed to the dataframe?&lt;BR /&gt;If possible please share the screenshot of your issue?&lt;BR /&gt;&lt;BR /&gt;If you can provide me more details, I will try to guide you.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 10:47:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3826851#M1405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-10T10:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse to SQL Endpoint keeps giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3827347#M1406</link>
      <description>&lt;P&gt;try to use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;SalesDocs_DF.write.format(&lt;/SPAN&gt;&lt;SPAN&gt;'delta'&lt;/SPAN&gt;&lt;SPAN&gt;).mode(&lt;/SPAN&gt;&lt;SPAN&gt;'overwrite'&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;STRONG&gt;saveAsTable&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Sales_Inventory'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Apr 2024 12:38:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3827347#M1406</guid>
      <dc:creator>R1k91</dc:creator>
      <dc:date>2024-04-10T12:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse to SQL Endpoint keeps giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3827921#M1407</link>
      <description>&lt;P&gt;I appreciate the help from you all. I atually endedup figuring out how to make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the following code through some researchonto it and it ended up working. I think my columns had some spaces or something at the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; pyspark.sql.functions &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; col&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;def&lt;/SPAN&gt; &lt;SPAN&gt;remove_bda_chars_from_columns&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;df: (&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;df.select([col(x).alias(x.replace(&lt;/SPAN&gt;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"_"&lt;/SPAN&gt;&lt;SPAN&gt;).replace(&lt;/SPAN&gt;&lt;SPAN&gt;"/"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;).replace(&lt;/SPAN&gt;&lt;SPAN&gt;"%"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"pct"&lt;/SPAN&gt;&lt;SPAN&gt;).replace(&lt;/SPAN&gt;&lt;SPAN&gt;"("&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;).replace(&lt;/SPAN&gt;&lt;SPAN&gt;")"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;)) &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; x &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; df.columns])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SalesDocs_DF = SalesDocs_DF.transform(&lt;/SPAN&gt;&lt;SPAN&gt;lambda&lt;/SPAN&gt; &lt;SPAN&gt;df&lt;/SPAN&gt;&lt;SPAN&gt;: remove_bda_chars_from_columns(df))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Apr 2024 15:15:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3827921#M1407</guid>
      <dc:creator>ghernandezmf</dc:creator>
      <dc:date>2024-04-10T15:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse to SQL Endpoint keeps giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3828102#M1408</link>
      <description>&lt;P&gt;Adding on to this for anyone that has a similar issue. This allows me to write a delta table without the column mapping so I can access the table through the SQL Endpoint.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 17:38:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3828102#M1408</guid>
      <dc:creator>ghernandezmf</dc:creator>
      <dc:date>2024-04-10T17:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse to SQL Endpoint keeps giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3829921#M1409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/721294"&gt;@ghernandezmf&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Glad to know that you were able resolve your issue.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 07:45:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3829921#M1409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-11T07:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse to SQL Endpoint keeps giving error</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3868391#M1410</link>
      <description>&lt;P&gt;This is awesome! Saved my life today, great solution, thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 12:49:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Lakehouse-to-SQL-Endpoint-keeps-giving-error/m-p/3868391#M1410</guid>
      <dc:creator>garyvanceTIL</dc:creator>
      <dc:date>2024-04-25T12:49:09Z</dc:date>
    </item>
  </channel>
</rss>

