<?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: Get-NcCifsSessionFile : There is an error in XML document in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-There-is-an-error-in-XML-document/m-p/433702#M6518</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I was able to get your variable to work as is, but i have to use command: Invoke-expression to get it to work.&lt;/P&gt;&lt;P&gt;Per example:&lt;/P&gt;&lt;P&gt;Get-variable -Name test:&lt;/P&gt;&lt;P&gt;Get-NcCifsSessionFile -VserverContext svm1_cluster1 | Select vserver,share,sharemode,openmode,path,fileid&lt;/P&gt;&lt;P&gt;PS&amp;gt; Invoke-expression $test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 09:28:12 GMT</pubDate>
    <dc:creator>hmoubara</dc:creator>
    <dc:date>2022-04-05T09:28:12Z</dc:date>
    <item>
      <title>Get-NcCifsSessionFile : There is an error in XML document</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-There-is-an-error-in-XML-document/m-p/433578#M6515</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I write the output from&amp;nbsp;Get-NcCifsSessionFile in variable I got often the XML error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion to solve the error?&lt;/P&gt;&lt;P&gt;DataOntap 9.8.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$OpenFilesNC = Get-NcCifsSessionFile&amp;nbsp; -VserverContext&amp;nbsp; $srv&amp;nbsp; | Select Vserver,Share,ShareMode,OpenMode,Path,FileId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;BR /&gt;Get-NcCifsSessionFile : There is an error in XML document (1, 6000).&lt;BR /&gt;At&lt;BR /&gt;+ ... $OpenFilesNC = Get-NcCifsSessionFile -VserverContext $srv |Select ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (.............. :NcController) [Get-NcCifsSessionFile], InvalidOperationException&lt;BR /&gt;+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Cifs.GetNcCifsSessionFile&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:02:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-There-is-an-error-in-XML-document/m-p/433578#M6515</guid>
      <dc:creator>JRN1</dc:creator>
      <dc:date>2025-06-04T10:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcCifsSessionFile : There is an error in XML document</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-There-is-an-error-in-XML-document/m-p/433691#M6516</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/108408"&gt;@JRN1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you confirm if you are able to run the command outside of the variable without any issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 08:36:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-There-is-an-error-in-XML-document/m-p/433691#M6516</guid>
      <dc:creator>hmoubara</dc:creator>
      <dc:date>2022-04-05T08:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcCifsSessionFile : There is an error in XML document</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-There-is-an-error-in-XML-document/m-p/433693#M6517</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/14855"&gt;@hmoubara&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes I can confirm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a way today. If I run it for specific share it works without error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have to use "-Query" because no "-Share" is available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$OpenFilesNC = Get-NcCifsSessionFile -Query @{ Share = $ShareName} |Select Vserver,Share,ShareMode,OpenMode,Path,FileId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 09:08:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-There-is-an-error-in-XML-document/m-p/433693#M6517</guid>
      <dc:creator>JRN1</dc:creator>
      <dc:date>2022-04-05T09:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcCifsSessionFile : There is an error in XML document</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-There-is-an-error-in-XML-document/m-p/433702#M6518</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I was able to get your variable to work as is, but i have to use command: Invoke-expression to get it to work.&lt;/P&gt;&lt;P&gt;Per example:&lt;/P&gt;&lt;P&gt;Get-variable -Name test:&lt;/P&gt;&lt;P&gt;Get-NcCifsSessionFile -VserverContext svm1_cluster1 | Select vserver,share,sharemode,openmode,path,fileid&lt;/P&gt;&lt;P&gt;PS&amp;gt; Invoke-expression $test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 09:28:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-There-is-an-error-in-XML-document/m-p/433702#M6518</guid>
      <dc:creator>hmoubara</dc:creator>
      <dc:date>2022-04-05T09:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcCifsSessionFile : There is an error in XML document</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-There-is-an-error-in-XML-document/m-p/433703#M6519</link>
      <description>&lt;P&gt;Hi thanks for finding that out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both solutions looks&amp;nbsp; to work.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 09:57:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcCifsSessionFile-There-is-an-error-in-XML-document/m-p/433703#M6519</guid>
      <dc:creator>JRN1</dc:creator>
      <dc:date>2022-04-05T09:57:54Z</dc:date>
    </item>
  </channel>
</rss>

