<?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: passing sql query to notebook in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/passing-sql-query-to-notebook/m-p/3902560#M3151</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="739073" data-lia-user-login="UsefGamal" class="lia-mention lia-mention-user"&gt;UsefGamal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using the Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;Could you please confirm the source of your .xlsx file?&lt;/P&gt;
&lt;P&gt;Try loading the file into a Lakehouse and use the below code.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import pandas as pd

# Read the Excel file
df = pd.read_excel('lakehouse ABFS file path', sheet_name='Sheet1')
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this information helps. Please do let us know if you have any further queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 14:21:57 GMT</pubDate>
    <dc:creator>v-cboorla-msft</dc:creator>
    <dc:date>2024-05-08T14:21:57Z</dc:date>
    <item>
      <title>passing sql query to notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/passing-sql-query-to-notebook/m-p/3901188#M3133</link>
      <description>&lt;P&gt;I am having a trouble passing sql queries to notebooks as they are originally stored in .Xlsx file , when they are passed as a string it gives me an error that it can't unserialize the response,&amp;nbsp; tried to put the query betweena single qoute and between double qoutes , it didn't help&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 06:37:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/passing-sql-query-to-notebook/m-p/3901188#M3133</guid>
      <dc:creator>UsefGamal</dc:creator>
      <dc:date>2024-05-08T06:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: passing sql query to notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/passing-sql-query-to-notebook/m-p/3902560#M3151</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="739073" data-lia-user-login="UsefGamal" class="lia-mention lia-mention-user"&gt;UsefGamal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using the Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;Could you please confirm the source of your .xlsx file?&lt;/P&gt;
&lt;P&gt;Try loading the file into a Lakehouse and use the below code.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import pandas as pd

# Read the Excel file
df = pd.read_excel('lakehouse ABFS file path', sheet_name='Sheet1')
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this information helps. Please do let us know if you have any further queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 14:21:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/passing-sql-query-to-notebook/m-p/3902560#M3151</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-05-08T14:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: passing sql query to notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/passing-sql-query-to-notebook/m-p/3905831#M3182</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="739073" data-lia-user-login="UsefGamal" class="lia-mention lia-mention-user"&gt;UsefGamal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.&lt;BR /&gt;In case if you have any resolution please do share that same with the community as it can be helpful to others.&lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:18:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/passing-sql-query-to-notebook/m-p/3905831#M3182</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-05-09T14:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: passing sql query to notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/passing-sql-query-to-notebook/m-p/3905865#M3184</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem was concerned with the Sql Query itself in the .xlsx file&lt;/P&gt;&lt;P&gt;The flow of the data is not directly to the notebook but it goes throw stages&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The excel file is a metadata config file so i use it to control the flow of the data from source to gold layer of the medallion architecture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the data goes through this flow:&lt;/P&gt;&lt;P&gt;lookup -&amp;gt; filter -&amp;gt; loop on filtered rows&lt;/P&gt;&lt;P&gt;So the metadata is passed to the notebook ,including the sql query,&lt;/P&gt;&lt;P&gt;I hade to remove the tabs , \n, extra spaces&amp;nbsp; making the query on a single line as it is passed as a string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that is how i solved the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:32:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/passing-sql-query-to-notebook/m-p/3905865#M3184</guid>
      <dc:creator>UsefGamal</dc:creator>
      <dc:date>2024-05-09T14:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: passing sql query to notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/passing-sql-query-to-notebook/m-p/3905870#M3185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="739073" data-lia-user-login="UsefGamal" class="lia-mention lia-mention-user"&gt;UsefGamal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad that you were able to find some insights and thank you for sharing the same with the community as it can be helpful to others.&lt;BR /&gt;Please continue using Fabric Community for further queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:35:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/passing-sql-query-to-notebook/m-p/3905870#M3185</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-05-09T14:35:50Z</dc:date>
    </item>
  </channel>
</rss>

