<?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 Unable to Read Multiple Excel Files Using Wildcard (*) inUnable to Read Mult Lakehouse using PySpark in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4407814#M7171</link>
    <description>&lt;P&gt;I’m trying to read multiple Excel (.xlsx) files from a folder in Lakehouse using Notebook PySpark. However, when I use a wildcard (*), I get a FileNotFound error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code that fails (attempting to read multiple files using wildcards):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;df_sales = pd.read_excel("abfss://{lakehouse}@onelake.dfs.fabric.microsoft.com/Files/Sales*.xlsx", sheet_name="Sales")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Error Message: Using a wildcard (*) results in FileNotFound.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the&amp;nbsp;Code that works (reading a single file):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;df_sales = pd.read_excel("abfss://{lakehouse}@onelake.dfs.fabric.microsoft.com/Files/Current/Sales_2023.xlsx", sheet_name="Sales")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;When specifying the exact file name, it works fine.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance or best practices would be greatly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2025 00:25:37 GMT</pubDate>
    <dc:creator>ArwaAldoud</dc:creator>
    <dc:date>2025-02-13T00:25:37Z</dc:date>
    <item>
      <title>Unable to Read Multiple Excel Files Using Wildcard (*) inUnable to Read Mult Lakehouse using PySpark</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4407814#M7171</link>
      <description>&lt;P&gt;I’m trying to read multiple Excel (.xlsx) files from a folder in Lakehouse using Notebook PySpark. However, when I use a wildcard (*), I get a FileNotFound error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code that fails (attempting to read multiple files using wildcards):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;df_sales = pd.read_excel("abfss://{lakehouse}@onelake.dfs.fabric.microsoft.com/Files/Sales*.xlsx", sheet_name="Sales")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Error Message: Using a wildcard (*) results in FileNotFound.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the&amp;nbsp;Code that works (reading a single file):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;df_sales = pd.read_excel("abfss://{lakehouse}@onelake.dfs.fabric.microsoft.com/Files/Current/Sales_2023.xlsx", sheet_name="Sales")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;When specifying the exact file name, it works fine.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance or best practices would be greatly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 00:25:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4407814#M7171</guid>
      <dc:creator>ArwaAldoud</dc:creator>
      <dc:date>2025-02-13T00:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Read Multiple Excel Files Using Wildcard (*) inUnable to Read Mult Lakehouse using PyS</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4407817#M7172</link>
      <description>&lt;P&gt;The file name is correct, the path is correct it's only an issue when using wildcards (*)&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 00:29:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4407817#M7172</guid>
      <dc:creator>ArwaAldoud</dc:creator>
      <dc:date>2025-02-13T00:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Read Multiple Excel Files Using Wildcard (*) inUnable to Read Mult Lakehouse using PyS</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4408539#M7179</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/771538"&gt;@ArwaAldoud&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out in Microsoft Community Forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;The wildcard (*) in pd.read_excel() is not supported because Pandas expects an exact file path.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;please follow below steps to acheive the error;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;1. Use dbutils.fs.ls() to get all Excel files in the folder and read them one by one into Pandas.&lt;/P&gt;
&lt;P&gt;2. For improved performance and scalability, it is recommended to use PySpark and leverage Spark’s Excel reader (com.crealytics.spark.excel) to efficiently read multiple files.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Please continue using Microsoft community forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If you found this post helpful, please consider marking it as "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" and give it a '&lt;STRONG&gt;Kudos&lt;/STRONG&gt;'. if it was helpful. help other members find it more easily.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Pavan.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 07:33:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4408539#M7179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-13T07:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Read Multiple Excel Files Using Wildcard (*) inUnable to Read Mult Lakehouse using PyS</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4412995#M7255</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/771538"&gt;@ArwaAldoud&lt;/a&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please "&lt;/SPAN&gt;&lt;STRONG&gt;Accept&amp;nbsp; as&amp;nbsp; Solution&lt;/STRONG&gt;&lt;SPAN&gt;" and give a '&lt;/SPAN&gt;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&lt;SPAN&gt;' so other members can easily find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavan.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 04:36:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4412995#M7255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-17T04:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Read Multiple Excel Files Using Wildcard (*) inUnable to Read Mult Lakehouse using PyS</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4414359#M7282</link>
      <description>&lt;P&gt;Thank you for your detailed response.&lt;/P&gt;&lt;P&gt;I followed your steps, but unfortunately, it didn’t work for me. Instead, I specified the exact file name in my scenario, and it worked fine.&lt;/P&gt;&lt;P&gt;I appreciate your support and guidance&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 17:48:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4414359#M7282</guid>
      <dc:creator>ArwaAldoud</dc:creator>
      <dc:date>2025-02-17T17:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Read Multiple Excel Files Using Wildcard (*) inUnable to Read Mult Lakehouse using PyS</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4414627#M7289</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/771538"&gt;@ArwaAldoud&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We trust that your issue has been resolved. Kindly mark my solution as "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;." Additionally, give it a '&lt;STRONG&gt;Kudos&lt;/STRONG&gt;' to help others find it easily.&lt;BR /&gt;&lt;BR /&gt;If you need any further assistance, feel free to reach out.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Please continue using Microsoft community forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;BR /&gt;Pavan.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 01:23:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4414627#M7289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-18T01:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Read Multiple Excel Files Using Wildcard (*) inUnable to Read Mult Lakehouse using PyS</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4415874#M7318</link>
      <description>&lt;P&gt;I truly appreciate your help.&lt;BR /&gt;Thanks again, and I’ll continue engaging in the Microsoft Community Forum.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 12:32:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-Read-Multiple-Excel-Files-Using-Wildcard-inUnable-to/m-p/4415874#M7318</guid>
      <dc:creator>ArwaAldoud</dc:creator>
      <dc:date>2025-02-18T12:32:44Z</dc:date>
    </item>
  </channel>
</rss>

