<?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: Table creation in lakehouse with schema in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Table-creation-in-lakehouse-with-schema/m-p/4126391#M55033</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289895" data-lia-user-login="schou" class="lia-mention lia-mention-user"&gt;schou&lt;/a&gt;&amp;nbsp; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know this error message occurs due to architectural mismatch occurs .&lt;/P&gt;
&lt;P&gt;You can try using the following syntax:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;df = spark.read.format(“csv”).option(“header”, “false”).load( “Files/2019.csv")
# Create a new table
df.write.format(“delta”).saveAsTable(“test2”)&lt;/LI-CODE&gt;
&lt;P&gt;If the above syntax doesn't take effect, you may want to consider leaving this message unchecked, as checking it may cause the system to apply more stringent checks to the data being written&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2024 06:54:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-30T06:54:42Z</dc:date>
    <item>
      <title>Table creation in lakehouse with schema</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Table-creation-in-lakehouse-with-schema/m-p/4125612#M55030</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a schema-enforced lakehouse and tried to create a table with Pyspark. Code as below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df.write.mode(&lt;/SPAN&gt;&lt;SPAN&gt;"overwrite"&lt;/SPAN&gt;&lt;SPAN&gt;).option(&lt;/SPAN&gt;&lt;SPAN&gt;"overwriteSchema"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"true"&lt;/SPAN&gt;&lt;SPAN&gt;).format(&lt;/SPAN&gt;&lt;SPAN&gt;"delta"&lt;/SPAN&gt;&lt;SPAN&gt;).saveAsTable(&lt;/SPAN&gt;&lt;SPAN&gt;"schema.table"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But returned the error like this:&amp;nbsp;An error occurred while calling o4724.saveAsTable. : java.lang.RuntimeException: Request failed: HTTP/1.1 403 Forbidden&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am able to use the same code to create a table in a non schema lakehouse.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;My account have write permission to both lakehouses.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Does anyone has insight of it?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you!!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Aug 2024 19:35:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Table-creation-in-lakehouse-with-schema/m-p/4125612#M55030</guid>
      <dc:creator>schou</dc:creator>
      <dc:date>2024-08-29T19:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Table creation in lakehouse with schema</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Table-creation-in-lakehouse-with-schema/m-p/4126391#M55033</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289895" data-lia-user-login="schou" class="lia-mention lia-mention-user"&gt;schou&lt;/a&gt;&amp;nbsp; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know this error message occurs due to architectural mismatch occurs .&lt;/P&gt;
&lt;P&gt;You can try using the following syntax:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;df = spark.read.format(“csv”).option(“header”, “false”).load( “Files/2019.csv")
# Create a new table
df.write.format(“delta”).saveAsTable(“test2”)&lt;/LI-CODE&gt;
&lt;P&gt;If the above syntax doesn't take effect, you may want to consider leaving this message unchecked, as checking it may cause the system to apply more stringent checks to the data being written&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 06:54:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Table-creation-in-lakehouse-with-schema/m-p/4126391#M55033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-30T06:54:42Z</dc:date>
    </item>
  </channel>
</rss>

