<?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: Unable to write the data into KQL database from Notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4599053#M7747</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1233035"&gt;@sertajmujawar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="22" data-end="77"&gt;Thanks for posting in the Microsoft Fabric Community.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P data-start="79" data-end="191"&gt;Please use the Query URI instead of the Ingestion URI and try again to write data to the KQL database.&lt;BR /&gt;You can find it in the Overview section under Database Details.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vveshwaramsft_0-1741280598611.png" style="width: 341px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1247443i5D00B729E9462429/image-dimensions/341x286?v=v2" width="341" height="286" role="button" title="vveshwaramsft_0-1741280598611.png" alt="vveshwaramsft_0-1741280598611.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;For reference, here is a similar discussion where this issue was resolved &lt;A href="https://community.fabric.microsoft.com/t5/Data-Engineering/Writing-to-KQL-db-from-notebook-Error/m-p/4050039" target="_blank" rel="noopener"&gt;Solved: Writing to KQL db from notebook - Error - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Please reach out for further assistance.&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and a kudos would be appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Best Regards,&lt;BR /&gt;Vinay.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 17:12:35 GMT</pubDate>
    <dc:creator>v-veshwara-msft</dc:creator>
    <dc:date>2025-03-06T17:12:35Z</dc:date>
    <item>
      <title>Unable to write the data into KQL database from Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4598191#M7740</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to write the data into my KQL database from python notebook. I am using Microsoft Fabric free trial account. I was able to read the data from KQL table but I am unable to write the data. I have pasted the screenshot of my code.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# The Kusto cluster uri to write the data. The query Uri is of the form https://&amp;lt;&amp;gt;.kusto.data.microsoft.com &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;kustoUri&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://ingest-trd-12jnamujc5c3ktnpvg.z5.kusto.fabric.microsoft.com" target="_blank" rel="noopener"&gt;https://ingest-trd-12jnamujc5c3ktnpvg.z5.kusto.fabric.microsoft.com&lt;/A&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# The database to write the data&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;database&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"NGED"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# The table to write the data &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;table&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp;= &lt;/SPAN&gt;&lt;SPAN&gt;"temp"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# The access credentials for the write&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;accessToken&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;mssparkutils&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;credentials&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getToken&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'kusto'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Generate a range of 5 rows with Id's 5 to 9&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt;&lt;SPAN&gt;.range(&lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Write data to a Kusto table&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;.write.\&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"com.microsoft.kusto.spark.synapse.datasource"&lt;/SPAN&gt;&lt;SPAN&gt;).\&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;option(&lt;/SPAN&gt;&lt;SPAN&gt;"kustoCluster"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;kustoUri&lt;/SPAN&gt;&lt;SPAN&gt;).\&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;option(&lt;/SPAN&gt;&lt;SPAN&gt;"kustoDatabase"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;database&lt;/SPAN&gt;&lt;SPAN&gt;).\&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;option(&lt;/SPAN&gt;&lt;SPAN&gt;"kustoTable"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;table&lt;/SPAN&gt;&lt;SPAN&gt;).\&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;option(&lt;/SPAN&gt;&lt;SPAN&gt;"accessToken"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;accessToken&lt;/SPAN&gt;&lt;SPAN&gt; ).\&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;option(&lt;/SPAN&gt;&lt;SPAN&gt;"tableCreateOptions"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"CreateIfNotExist"&lt;/SPAN&gt;&lt;SPAN&gt;).mode(&lt;/SPAN&gt;&lt;SPAN&gt;"Append"&lt;/SPAN&gt;&lt;SPAN&gt;).save()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Mar 2025 09:31:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4598191#M7740</guid>
      <dc:creator>sertajmujawar</dc:creator>
      <dc:date>2025-03-06T09:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write the data into KQL database from Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4599053#M7747</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1233035"&gt;@sertajmujawar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="22" data-end="77"&gt;Thanks for posting in the Microsoft Fabric Community.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P data-start="79" data-end="191"&gt;Please use the Query URI instead of the Ingestion URI and try again to write data to the KQL database.&lt;BR /&gt;You can find it in the Overview section under Database Details.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vveshwaramsft_0-1741280598611.png" style="width: 341px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1247443i5D00B729E9462429/image-dimensions/341x286?v=v2" width="341" height="286" role="button" title="vveshwaramsft_0-1741280598611.png" alt="vveshwaramsft_0-1741280598611.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;For reference, here is a similar discussion where this issue was resolved &lt;A href="https://community.fabric.microsoft.com/t5/Data-Engineering/Writing-to-KQL-db-from-notebook-Error/m-p/4050039" target="_blank" rel="noopener"&gt;Solved: Writing to KQL db from notebook - Error - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Please reach out for further assistance.&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and a kudos would be appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Best Regards,&lt;BR /&gt;Vinay.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 17:12:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4599053#M7747</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-03-06T17:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write the data into KQL database from Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4606235#M7856</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1233035"&gt;@sertajmujawar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="15" data-end="258"&gt;Just following up on your issue to see if you’ve found a solution. If so, please mark the helpful reply as the &lt;STRONG data-start="126" data-end="147"&gt;Accepted Solution&lt;/STRONG&gt; to assist others with similar issues. If you still need help, feel free to reach out for further assistance.&lt;/P&gt;
&lt;P data-start="260" data-end="287" data-is-last-node="" data-is-only-node=""&gt;Best regards,&lt;BR data-start="277" data-end="280" /&gt;Vinay.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 05:26:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4606235#M7856</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-03-12T05:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write the data into KQL database from Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4606820#M7869</link>
      <description>&lt;P&gt;Thank you, I was able to write the data into KQL database, after correcting the URL&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 11:32:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4606820#M7869</guid>
      <dc:creator>sertajmujawar</dc:creator>
      <dc:date>2025-03-12T11:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write the data into KQL database from Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4606843#M7870</link>
      <description>&lt;P&gt;Glad to hear that it worked after correcting the URL. Could you also consider marking the reply as "Accept as Solution" to assist others facing similar issue.&lt;BR /&gt;&lt;BR /&gt;Please continue using Fabric Community Forum for further queries.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Vinay.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 11:41:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4606843#M7870</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-03-12T11:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write the data into KQL database from Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4611755#M7951</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1233035"&gt;@sertajmujawar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="115" data-end="281"&gt;Could you please mark the helpful reply as "Accept as Solution" to assist others facing similar issues? This helps the community quickly find the right answers.&lt;/P&gt;
&lt;P data-start="283" data-end="405"&gt;We appreciate your cooperation and look forward to supporting you with any future queries in the Fabric Community Forum.&lt;/P&gt;
&lt;P data-start="407" data-end="434"&gt;Best regards,&lt;BR data-start="424" data-end="427" /&gt;Vinay.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2025 07:29:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4611755#M7951</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-03-16T07:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to write the data into KQL database from Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4619098#M8116</link>
      <description>&lt;P&gt;Yes, it is working now. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 04:23:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-write-the-data-into-KQL-database-from-Notebook/m-p/4619098#M8116</guid>
      <dc:creator>sertajmujawar</dc:creator>
      <dc:date>2025-03-21T04:23:18Z</dc:date>
    </item>
  </channel>
</rss>

