<?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 Error while reading XLSX file into dataframe using pandas in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4586613#M7530</link>
    <description>&lt;P&gt;Hi, I have an Excel file (XLSX) in my lakehouse&lt;/P&gt;&lt;P&gt;I'm trying to read this file into a pandas dataframe. I need to use the abfss path as the lakehouse is not the default one&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;EM&gt;mapping_file_path = 'abfss://8c1bcfa5-23ea-XXXX-XXXX-69c87e571fe8@onelake.dfs.fabric.microsoft.com/3b7dcdcc-4418-XXXX-XXXX-7b399c4999c6/Files/Config/BankEntityMapping.xlsx'&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;EM&gt;df_pd = pd.read_excel(mapping_file_path, header=0, sheet_name=0, dtype=str)&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mostly It works fine. But frequently it gives error : &lt;U&gt;&lt;STRONG&gt;azure.core.exceptions.ClientAuthenticationError: Operation returned an invalid status 'Unauthorized' ErrorCode:Unauthorized &lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Then again after restarting the session it starts working.&lt;BR /&gt;&lt;BR /&gt;Any idea why this is happening? How to avoid such random error in Production?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Complete Error Message:&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last): File "/tmp/ipykernel_12261/2093658782.py", line 6, in &amp;lt;module&amp;gt; df_pd = pd.read_excel(mapping_file_path, header=0, sheet_name=0, dtype=str) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/pandas/io/excel/_base.py", line 504, in read_excel io = ExcelFile( ^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/pandas/io/excel/_base.py", line 1563, in __init__ ext = inspect_excel_format( ^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/pandas/io/excel/_base.py", line 1419, in inspect_excel_format with get_handle( ^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/pandas/io/common.py", line 718, in get_handle ioargs = _get_filepath_or_buffer( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/pandas/io/common.py", line 420, in _get_filepath_or_buffer ).open() ^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/core.py", line 135, in open return self.__enter__() ^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/core.py", line 103, in __enter__ f = self.fs.open(self.path, mode=mode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/spec.py", line 1293, in open f = self._open( ^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/adlfs/spec.py", line 1820, in _open return AzureBlobFile( ^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/adlfs/spec.py", line 1946, in __init__ if not hasattr(self, "details"): ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/spec.py", line 1664, in details self._details = self.fs.info(self.path) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/asyn.py", line 118, in wrapper return sync(self.loop, func, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/asyn.py", line 103, in sync raise return_result File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/asyn.py", line 56, in _runner result[0] = await coro ^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/adlfs/spec.py", line 610, in _info props = await bc.get_blob_properties(version_id=version_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/core/tracing/decorator_async.py", line 114, in wrapper_use_tracer return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/storage/blob/aio/_blob_client_async.py", line 781, in get_blob_properties process_storage_error(error) File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/storage/blob/_shared/response_handlers.py", line 184, in process_storage_error exec("raise error from None") # pylint: disable=exec-used # nosec ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt; File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/storage/blob/aio/_blob_client_async.py", line 771, in get_blob_properties blob_props = await self._client.blob.get_properties( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/core/tracing/decorator_async.py", line 114, in wrapper_use_tracer return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/storage/blob/_generated/aio/operations/_blob_operations.py", line 498, in get_properties map_error(status_code=response.status_code, response=response, error_map=error_map) File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/core/exceptions.py", line 163, in map_error raise error azure.core.exceptions.ClientAuthenticationError: Operation returned an invalid status 'Unauthorized' ErrorCode:Unauthorized&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 05:55:44 GMT</pubDate>
    <dc:creator>Arundhati_Sen1</dc:creator>
    <dc:date>2025-02-27T05:55:44Z</dc:date>
    <item>
      <title>Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4586613#M7530</link>
      <description>&lt;P&gt;Hi, I have an Excel file (XLSX) in my lakehouse&lt;/P&gt;&lt;P&gt;I'm trying to read this file into a pandas dataframe. I need to use the abfss path as the lakehouse is not the default one&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;EM&gt;mapping_file_path = 'abfss://8c1bcfa5-23ea-XXXX-XXXX-69c87e571fe8@onelake.dfs.fabric.microsoft.com/3b7dcdcc-4418-XXXX-XXXX-7b399c4999c6/Files/Config/BankEntityMapping.xlsx'&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-30px"&gt;&lt;EM&gt;df_pd = pd.read_excel(mapping_file_path, header=0, sheet_name=0, dtype=str)&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="lia-align-left lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mostly It works fine. But frequently it gives error : &lt;U&gt;&lt;STRONG&gt;azure.core.exceptions.ClientAuthenticationError: Operation returned an invalid status 'Unauthorized' ErrorCode:Unauthorized &lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Then again after restarting the session it starts working.&lt;BR /&gt;&lt;BR /&gt;Any idea why this is happening? How to avoid such random error in Production?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Complete Error Message:&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last): File "/tmp/ipykernel_12261/2093658782.py", line 6, in &amp;lt;module&amp;gt; df_pd = pd.read_excel(mapping_file_path, header=0, sheet_name=0, dtype=str) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/pandas/io/excel/_base.py", line 504, in read_excel io = ExcelFile( ^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/pandas/io/excel/_base.py", line 1563, in __init__ ext = inspect_excel_format( ^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/pandas/io/excel/_base.py", line 1419, in inspect_excel_format with get_handle( ^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/pandas/io/common.py", line 718, in get_handle ioargs = _get_filepath_or_buffer( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/pandas/io/common.py", line 420, in _get_filepath_or_buffer ).open() ^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/core.py", line 135, in open return self.__enter__() ^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/core.py", line 103, in __enter__ f = self.fs.open(self.path, mode=mode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/spec.py", line 1293, in open f = self._open( ^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/adlfs/spec.py", line 1820, in _open return AzureBlobFile( ^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/adlfs/spec.py", line 1946, in __init__ if not hasattr(self, "details"): ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/spec.py", line 1664, in details self._details = self.fs.info(self.path) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/asyn.py", line 118, in wrapper return sync(self.loop, func, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/asyn.py", line 103, in sync raise return_result File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/fsspec/asyn.py", line 56, in _runner result[0] = await coro ^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/adlfs/spec.py", line 610, in _info props = await bc.get_blob_properties(version_id=version_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/core/tracing/decorator_async.py", line 114, in wrapper_use_tracer return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/storage/blob/aio/_blob_client_async.py", line 781, in get_blob_properties process_storage_error(error) File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/storage/blob/_shared/response_handlers.py", line 184, in process_storage_error exec("raise error from None") # pylint: disable=exec-used # nosec ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt; File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/storage/blob/aio/_blob_client_async.py", line 771, in get_blob_properties blob_props = await self._client.blob.get_properties( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/core/tracing/decorator_async.py", line 114, in wrapper_use_tracer return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/storage/blob/_generated/aio/operations/_blob_operations.py", line 498, in get_properties map_error(status_code=response.status_code, response=response, error_map=error_map) File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/azure/core/exceptions.py", line 163, in map_error raise error azure.core.exceptions.ClientAuthenticationError: Operation returned an invalid status 'Unauthorized' ErrorCode:Unauthorized&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 05:55:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4586613#M7530</guid>
      <dc:creator>Arundhati_Sen1</dc:creator>
      <dc:date>2025-02-27T05:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4587229#M7540</link>
      <description>&lt;P&gt;What is your current authentication method to retrieve the files? Do you use user authentication? The best practise is to use a service principal to authenticate, so you are not dependend on the user trying to run the notebook. Especially is production. This link provides the steps to authenticate to OneLake using a service principal. It may solve your problem too.&lt;BR /&gt;&lt;A href="https://debruyn.dev/2023/how-to-use-service-principal-authentication-to-access-microsoft-fabrics-onelake/" target="_blank"&gt;https://debruyn.dev/2023/how-to-use-service-principal-authentication-to-access-microsoft-fabrics-onelake/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 06:30:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4587229#M7540</guid>
      <dc:creator>FabianSchut</dc:creator>
      <dc:date>2025-02-27T06:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4587308#M7550</link>
      <description>&lt;P&gt;Yes it's the default authentication. But why only with xlsx type of file this issue is occuring? Same time if I check for json or csv file there is no issue in loading the files. Any idea?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 07:00:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4587308#M7550</guid>
      <dc:creator>Arundhati_Sen1</dc:creator>
      <dc:date>2025-02-27T07:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4588857#M7581</link>
      <description>&lt;P&gt;Is it possible that this file is modified at the same time you are trying to read it?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 22:44:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4588857#M7581</guid>
      <dc:creator>FabianSchut</dc:creator>
      <dc:date>2025-02-27T22:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4591577#M7621</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/945278"&gt;@Arundhati_Sen1&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided by &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/701977"&gt;@FabianSchut&lt;/a&gt;,Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Mar 2025 06:27:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4591577#M7621</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-03-02T06:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4592267#M7636</link>
      <description>&lt;P&gt;I can confirm that the xlsx file is at closed state when issue takes place. That's not the case it seems&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 06:13:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4592267#M7636</guid>
      <dc:creator>Arundhati_Sen1</dc:creator>
      <dc:date>2025-03-03T06:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4596508#M7711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/945278"&gt;@Arundhati_Sen1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Forum Community.&amp;nbsp;&lt;SPAN&gt;Thank you&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/701977"&gt;@FabianSchut&lt;/a&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, for your input on this issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you for providing detailed information about the issue you’re facing. Based on your description and the discussion with the superuser, here’s a comprehensive solution to address the intermittent&amp;nbsp;ClientAuthenticationError: Unauthorized&amp;nbsp;issue when reading XLSX files from your Lakehouse:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Please ensure that the authentication token has a sufficiently long expiration time and is set to refresh automatically if required. If you are using the DefaultAzureCredential or a custom authentication mechanism, confirm the token's expiry and refresh it proactively.&amp;nbsp;&lt;/LI&gt;
&lt;LI data-leveltext="" data-font="Symbol" data-listid="1" data-list-defn-props="{&amp;quot;335552541&amp;quot;:1,&amp;quot;335559683&amp;quot;:0,&amp;quot;335559684&amp;quot;:-2,&amp;quot;335559685&amp;quot;:720,&amp;quot;335559991&amp;quot;:360,&amp;quot;469769226&amp;quot;:&amp;quot;Symbol&amp;quot;,&amp;quot;469769242&amp;quot;:[8226],&amp;quot;469777803&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;469777804&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;469777815&amp;quot;:&amp;quot;hybridMultilevel&amp;quot;}" aria-setsize="-1" data-aria-posinset="1" data-aria-level="1"&gt;Although you have confirmed that the XLSX file is closed when the issue arises, please ensure that no other processes are accessing or modifying the file at the same time.&amp;nbsp;&lt;/LI&gt;
&lt;LI data-leveltext="" data-font="Symbol" data-listid="1" data-list-defn-props="{&amp;quot;335552541&amp;quot;:1,&amp;quot;335559683&amp;quot;:0,&amp;quot;335559684&amp;quot;:-2,&amp;quot;335559685&amp;quot;:720,&amp;quot;335559991&amp;quot;:360,&amp;quot;469769226&amp;quot;:&amp;quot;Symbol&amp;quot;,&amp;quot;469769242&amp;quot;:[8226],&amp;quot;469777803&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;469777804&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;469777815&amp;quot;:&amp;quot;hybridMultilevel&amp;quot;}" aria-setsize="-1" data-aria-posinset="1" data-aria-level="1"&gt;Please verify your configuration settings to confirm they are correctly set up for authentication.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please give us ‘Kudos’ and consider&amp;nbsp;Accept it as a solution&amp;nbsp;to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 11:09:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4596508#M7711</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-03-05T11:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4596533#M7712</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/883010"&gt;@v-saisrao-msft&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I am following&amp;nbsp;&lt;A title="https://www.youtube.com/watch?v=sjCDtDHej90&amp;amp;t=144s" href="https://www.youtube.com/watch?v=sjCDtDHej90&amp;amp;t=144s" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=sjCDtDHej90&amp;amp;t=144s&amp;nbsp;&lt;/A&gt;&amp;nbsp;which shows how to read excel file from lakehouse&lt;BR /&gt;&lt;BR /&gt;Normally reading the file from lakehouse :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;pd.read_excel(mapping_file_path, &lt;/SPAN&gt;&lt;SPAN&gt;header&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;sheet_name&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;dtype&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;str&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Regarding below points, how do I do that? Can you share any example for below please:&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;Please ensure that the authentication token has a sufficiently long expiration time and is set to refresh automatically if required. If you are using the DefaultAzureCredential or a custom authentication mechanism, confirm the token's expiry and refresh it proactively.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Please verify your configuration settings to confirm they are correctly set up for authentication.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Mar 2025 11:36:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4596533#M7712</guid>
      <dc:creator>Arundhati_Sen1</dc:creator>
      <dc:date>2025-03-05T11:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4600592#M7773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/945278"&gt;@Arundhati_Sen1&lt;/a&gt;,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Authentication tokens expire after a set period (usually 1 hour), which can cause issues in long-running or idle processes. DefaultAzureCredential should automatically handle token renewal if implemented correctly. For custom authentication, check and refresh the token before it expires. If using a service principal, ensure periodic token refresh to maintain continuous access.&lt;/LI&gt;
&lt;LI&gt;Make sure your user account or service principal has the required roles, like Storage Blob Data Reader for read access or Storage Blob Data Contributor for read/write access. Confirm that the abfss:// path is correctly formatted and points to the correct file in the Lakehouse.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P data-start="1629" data-end="1762"&gt;If this post helps, then please give us ‘Kudos’ and consider accepting it as a solution to help other members find it more quickly.&lt;/P&gt;
&lt;P data-start="1764" data-end="1777" data-is-last-node="" data-is-only-node=""&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 14:41:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4600592#M7773</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-03-07T14:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4604931#M7835</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/945278"&gt;@Arundhati_Sen1&lt;/a&gt;,&lt;/P&gt;
&lt;P&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 accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 10:29:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4604931#M7835</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-03-11T10:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4611451#M7942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/945278"&gt;@Arundhati_Sen1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 16:16:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4611451#M7942</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-03-15T16:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4615631#M8027</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/945278"&gt;@Arundhati_Sen1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We haven’t heard back from you regarding your issue. If it has been resolved, please mark the helpful response as the solution and give a ‘Kudos’ to assist others. If you still need support, let us know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 05:09:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4615631#M8027</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-03-19T05:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4615655#M8030</link>
      <description>&lt;P&gt;No it didn't help. I have changed my source file type to json now and after that I am not facing any Unauthorization issue&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 05:34:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4615655#M8030</guid>
      <dc:creator>Arundhati_Sen1</dc:creator>
      <dc:date>2025-03-19T05:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading XLSX file into dataframe using pandas</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4615686#M8032</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/945278"&gt;@Arundhati_Sen1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please provide your insights on this issue and mark your helpful reply as solution so that other community members can find it easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 05:58:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-while-reading-XLSX-file-into-dataframe-using-pandas/m-p/4615686#M8032</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-03-19T05:58:43Z</dc:date>
    </item>
  </channel>
</rss>

