<?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: Index was out of range. Must be non-negative and less than the size of the collection. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Index-was-out-of-range-Must-be-non-negative-and-less-than-the/m-p/4273434#M58185</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/353545"&gt;@MartinaHawkins&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The error message “Index was out of range. Must be non-negative and less than the size of the collection” typically indicates that an invalid index has been used when accessing a collection, such as an array or list. Specifically, this means that the index you are trying to access is either negative or exceeds the size of the collection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have looked into several solutions for similar issues you might be facing, and you can try the following steps:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;SPAN&gt;Firstly, please check that the URL you have entered for Data Lake Storage Gen2 meets the required specifications.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Here is a screenshot from the relevant documentation:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_0-1730957583854.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1195515iAE65B7F68712BAB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_0-1730957583854.png" alt="vlinyulumsft_0-1730957583854.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For further details, please refer to the documentation.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/connectors/data-lake-storage" target="_blank"&gt;&lt;SPAN&gt;Azure Data Lake Storage Gen2 - Power Query | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/connectors/analyze-data-in-adls-gen2" target="_blank"&gt;&lt;SPAN&gt;Analyze data in Azure Data Lake Storage Gen2 by using Power BI - Power Query | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;SPAN&gt;Secondly, ensure that the correct ports are open for your network/firewall. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_1-1730957583857.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1195516i11F1B7ACD3E9FE35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_1-1730957583857.png" alt="vlinyulumsft_1-1730957583857.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For more information, please consult the documentation.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/answers/questions/1344787/azure-ad-connect-error-argumentoutofrangeexception" target="_blank"&gt;Azure AD Connect Error - ArgumentOutOfRangeException: Index was out of range - Microsoft Q&amp;amp;A&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/active-directory/hybrid/reference-connect-ports#table-1---azure-ad-connect-and-on-premises-ad" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/active-directory/hybrid/reference-connect-ports#table-1---azure-ad-connect-and-on-premises-ad&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;3.Next, based on another document related to the same error, you might also consider upgrading Az.Resources to see if that resolves the issue:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_2-1730957652337.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1195518iBDACFD2D867DDF21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_2-1730957652337.png" alt="vlinyulumsft_2-1730957652337.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;For detailed guidance, please refer to the documentation.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://www.powershellgallery.com/packages/Az.Resources/7.5.0" target="_blank"&gt;&lt;SPAN&gt;PowerShell Gallery | Az.Resources 7.5.0&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://github.com/Azure/azure-powershell/issues/24177" target="_blank"&gt;&lt;SPAN&gt;Get-AzRoleAssignment: Index was out of range. Must be non-negative and less than the size of the collection. · Issue #24177 · Azure/azure-powershell&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;4.Finally, you could try changing the account privileges to see if that helps resolve the problem.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_3-1730957652342.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1195517i11F607440DA9185A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_3-1730957652342.png" alt="vlinyulumsft_3-1730957652342.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;A href="https://learn.microsoft.com/en-us/answers/questions/314861/azure-ad-connect-error-argumentoutofrangeexception" target="_blank"&gt;&lt;SPAN&gt;Azure AD Connect Error - ArgumentOutOfRangeException: Index was out of range - Microsoft Q&amp;amp;A&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/reference-connect-accounts-permissions" target="_blank"&gt;&lt;SPAN&gt;Microsoft Entra Connect: Accounts and permissions - Microsoft Entra ID | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Of course, if you have any new discoveries or questions, please feel free to get in touch with us.&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2024 05:34:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-07T05:34:59Z</dc:date>
    <item>
      <title>Index was out of range. Must be non-negative and less than the size of the collection.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Index-was-out-of-range-Must-be-non-negative-and-less-than-the/m-p/4272576#M58167</link>
      <description>&lt;P&gt;Hi, I am getting this error when trying to connect an Azure Storage datalake V2 table to Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please explain what this means or what the solution is&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 13:46:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Index-was-out-of-range-Must-be-non-negative-and-less-than-the/m-p/4272576#M58167</guid>
      <dc:creator>MartinaHawkins</dc:creator>
      <dc:date>2024-11-06T13:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Index was out of range. Must be non-negative and less than the size of the collection.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Index-was-out-of-range-Must-be-non-negative-and-less-than-the/m-p/4273434#M58185</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/353545"&gt;@MartinaHawkins&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The error message “Index was out of range. Must be non-negative and less than the size of the collection” typically indicates that an invalid index has been used when accessing a collection, such as an array or list. Specifically, this means that the index you are trying to access is either negative or exceeds the size of the collection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have looked into several solutions for similar issues you might be facing, and you can try the following steps:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;SPAN&gt;Firstly, please check that the URL you have entered for Data Lake Storage Gen2 meets the required specifications.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Here is a screenshot from the relevant documentation:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_0-1730957583854.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1195515iAE65B7F68712BAB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_0-1730957583854.png" alt="vlinyulumsft_0-1730957583854.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For further details, please refer to the documentation.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/connectors/data-lake-storage" target="_blank"&gt;&lt;SPAN&gt;Azure Data Lake Storage Gen2 - Power Query | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/connectors/analyze-data-in-adls-gen2" target="_blank"&gt;&lt;SPAN&gt;Analyze data in Azure Data Lake Storage Gen2 by using Power BI - Power Query | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;SPAN&gt;Secondly, ensure that the correct ports are open for your network/firewall. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_1-1730957583857.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1195516i11F1B7ACD3E9FE35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_1-1730957583857.png" alt="vlinyulumsft_1-1730957583857.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For more information, please consult the documentation.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/answers/questions/1344787/azure-ad-connect-error-argumentoutofrangeexception" target="_blank"&gt;Azure AD Connect Error - ArgumentOutOfRangeException: Index was out of range - Microsoft Q&amp;amp;A&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/active-directory/hybrid/reference-connect-ports#table-1---azure-ad-connect-and-on-premises-ad" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/active-directory/hybrid/reference-connect-ports#table-1---azure-ad-connect-and-on-premises-ad&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;3.Next, based on another document related to the same error, you might also consider upgrading Az.Resources to see if that resolves the issue:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_2-1730957652337.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1195518iBDACFD2D867DDF21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_2-1730957652337.png" alt="vlinyulumsft_2-1730957652337.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;For detailed guidance, please refer to the documentation.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://www.powershellgallery.com/packages/Az.Resources/7.5.0" target="_blank"&gt;&lt;SPAN&gt;PowerShell Gallery | Az.Resources 7.5.0&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://github.com/Azure/azure-powershell/issues/24177" target="_blank"&gt;&lt;SPAN&gt;Get-AzRoleAssignment: Index was out of range. Must be non-negative and less than the size of the collection. · Issue #24177 · Azure/azure-powershell&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;4.Finally, you could try changing the account privileges to see if that helps resolve the problem.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_3-1730957652342.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1195517i11F607440DA9185A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_3-1730957652342.png" alt="vlinyulumsft_3-1730957652342.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;A href="https://learn.microsoft.com/en-us/answers/questions/314861/azure-ad-connect-error-argumentoutofrangeexception" target="_blank"&gt;&lt;SPAN&gt;Azure AD Connect Error - ArgumentOutOfRangeException: Index was out of range - Microsoft Q&amp;amp;A&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/reference-connect-accounts-permissions" target="_blank"&gt;&lt;SPAN&gt;Microsoft Entra Connect: Accounts and permissions - Microsoft Entra ID | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Of course, if you have any new discoveries or questions, please feel free to get in touch with us.&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 05:34:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Index-was-out-of-range-Must-be-non-negative-and-less-than-the/m-p/4273434#M58185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-07T05:34:59Z</dc:date>
    </item>
  </channel>
</rss>

