<?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 get-ncroleconfig return error with ontap 9.X : There is an error in XML document (1, 129). in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncroleconfig-return-error-with-ontap-9-X-There-is-an-error-in-XML-document-1/m-p/132781#M5421</link>
    <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I encounter a problem with Get-NcRoleConfig from PSTK 4.2.0.0&lt;/P&gt;&lt;P&gt;It works well with ONTAP 8.3.2&lt;/P&gt;&lt;P&gt;But it failed with ONTAP 9.1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;PS C:\Users\masson&amp;gt; Get-NcRoleConfig -Controller $cot3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Get-NcRoleConfig : There is an error in XML document (1, 129).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;At line:1 char:1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;+ Get-NcRoleConfig -Controller $cot3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;+ CategoryInfo : InvalidOperation: (cot3:NcController) [Get-NcRoleConfig], InvalidOperationException&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Security.GetNcRoleConfig&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only think i saw in apache.log is:&lt;/P&gt;&lt;P&gt;10.64.74.154 10.65.176.31 4294967295 admin [Thu Jul 13 17:55:34.041663 2017 +0200] "POST /servlets/netapp.servlets.admin.XMLrequest_filer HTTP/1.1" 200 84450 307794 - 0 + 127.0.0.1 security-login-role-config-get-iter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advices?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 14:51:14 GMT</pubDate>
    <dc:creator>masson</dc:creator>
    <dc:date>2025-06-04T14:51:14Z</dc:date>
    <item>
      <title>get-ncroleconfig return error with ontap 9.X : There is an error in XML document (1, 129).</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncroleconfig-return-error-with-ontap-9-X-There-is-an-error-in-XML-document-1/m-p/132781#M5421</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I encounter a problem with Get-NcRoleConfig from PSTK 4.2.0.0&lt;/P&gt;&lt;P&gt;It works well with ONTAP 8.3.2&lt;/P&gt;&lt;P&gt;But it failed with ONTAP 9.1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;PS C:\Users\masson&amp;gt; Get-NcRoleConfig -Controller $cot3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Get-NcRoleConfig : There is an error in XML document (1, 129).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;At line:1 char:1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;+ Get-NcRoleConfig -Controller $cot3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;+ CategoryInfo : InvalidOperation: (cot3:NcController) [Get-NcRoleConfig], InvalidOperationException&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Security.GetNcRoleConfig&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only think i saw in apache.log is:&lt;/P&gt;&lt;P&gt;10.64.74.154 10.65.176.31 4294967295 admin [Thu Jul 13 17:55:34.041663 2017 +0200] "POST /servlets/netapp.servlets.admin.XMLrequest_filer HTTP/1.1" 200 84450 307794 - 0 + 127.0.0.1 security-login-role-config-get-iter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advices?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:51:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncroleconfig-return-error-with-ontap-9-X-There-is-an-error-in-XML-document-1/m-p/132781#M5421</guid>
      <dc:creator>masson</dc:creator>
      <dc:date>2025-06-04T14:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: get-ncroleconfig return error with ontap 9.X : There is an error in XML document (1, 129).</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncroleconfig-return-error-with-ontap-9-X-There-is-an-error-in-XML-document-1/m-p/132783#M5422</link>
      <description>&lt;P&gt;This appears to be a bug in the ZAPI being used by PSTK, or at least the documentation so that consumers (e.g. PSTK) know what output to expect.&amp;nbsp; To dig a little deeper, here is the ZAPI output from my ONTAP 9.1 cluster:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;results status="passed"&amp;gt;
    &amp;lt;attributes-list&amp;gt;
        &amp;lt;security-login-role-config-info&amp;gt;
            &amp;lt;account-expiry-time&amp;gt;unlimited&amp;lt;/account-expiry-time&amp;gt;
            &amp;lt;account-inactive-limit&amp;gt;unlimited&amp;lt;/account-inactive-limit&amp;gt;
            &amp;lt;change-password-duration-in-days&amp;gt;0&amp;lt;/change-password-duration-in-days&amp;gt;
            &amp;lt;delay-after-failed-login&amp;gt;4&amp;lt;/delay-after-failed-login&amp;gt;
            &amp;lt;last-passwords-disallowed-count&amp;gt;6&amp;lt;/last-passwords-disallowed-count&amp;gt;
            &amp;lt;lockout-duration&amp;gt;0&amp;lt;/lockout-duration&amp;gt;
            &amp;lt;max-failed-login-attempts&amp;gt;0&amp;lt;/max-failed-login-attempts&amp;gt;
            &amp;lt;min-passwd-specialchar&amp;gt;0&amp;lt;/min-passwd-specialchar&amp;gt;
            &amp;lt;min-password-size&amp;gt;8&amp;lt;/min-password-size&amp;gt;
            &amp;lt;min-username-size&amp;gt;3&amp;lt;/min-username-size&amp;gt;
            &amp;lt;passwd-expiry-warn-time&amp;gt;unlimited&amp;lt;/passwd-expiry-warn-time&amp;gt;
            &amp;lt;passwd-min-digits&amp;gt;0&amp;lt;/passwd-min-digits&amp;gt;
            &amp;lt;passwd-min-lowercase-chars&amp;gt;0&amp;lt;/passwd-min-lowercase-chars&amp;gt;
            &amp;lt;passwd-min-uppercase-chars&amp;gt;0&amp;lt;/passwd-min-uppercase-chars&amp;gt;
            &amp;lt;password-expiration-duration&amp;gt;unlimited&amp;lt;/password-expiration-duration&amp;gt;
            &amp;lt;require-initial-password-update&amp;gt;false&amp;lt;/require-initial-password-update&amp;gt;
            &amp;lt;require-password-alpha-numeric&amp;gt;true&amp;lt;/require-password-alpha-numeric&amp;gt;
            &amp;lt;require-username-alpha-numeric&amp;gt;false&amp;lt;/require-username-alpha-numeric&amp;gt;
            &amp;lt;role-name&amp;gt;vsadmin&amp;lt;/role-name&amp;gt;
            &amp;lt;vserver&amp;gt;qtest&amp;lt;/vserver&amp;gt;
        &amp;lt;/security-login-role-config-info&amp;gt;
    &amp;lt;/attributes-list&amp;gt;
    &amp;lt;num-records&amp;gt;1&amp;lt;/num-records&amp;gt;
&amp;lt;/results&amp;gt;&lt;/PRE&gt;&lt;P&gt;The error I'm receiving is saying that it can't parse a string into a number for the value of &lt;FONT face="courier new,courier"&gt;account-inactive-limit&lt;/FONT&gt;.&amp;nbsp; If we look at the ZAPI docs it says it's a string type with an integer value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7410i2EE3E900ACFE94D3/image-size/original?v=1.0&amp;amp;px=-1" alt="2017-07-13 12_35_33-Microsoft Edge.png" title="2017-07-13 12_35_33-Microsoft Edge.png" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the ZAPI response above, notice that the value is "unlimited"...which is not an integer.&amp;nbsp; PSTK is using the function System.Number.StringToNumber to attempt to convert that into an integer, which fails and is causing the error we are seeing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll create a bug to track this.&amp;nbsp; If you're willing to PM me your address, I'm happy to send you some stickers as a bug bounty &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 16:42:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncroleconfig-return-error-with-ontap-9-X-There-is-an-error-in-XML-document-1/m-p/132783#M5422</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2017-07-13T16:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: get-ncroleconfig return error with ontap 9.X : There is an error in XML document (1, 129).</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncroleconfig-return-error-with-ontap-9-X-There-is-an-error-in-XML-document-1/m-p/132786#M5423</link>
      <description>&lt;P&gt;For reference, this is bug 1098234.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 18:58:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncroleconfig-return-error-with-ontap-9-X-There-is-an-error-in-XML-document-1/m-p/132786#M5423</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2017-07-13T18:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: get-ncroleconfig return error with ontap 9.X : There is an error in XML document (1, 129).</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncroleconfig-return-error-with-ontap-9-X-There-is-an-error-in-XML-document-1/m-p/134106#M5469</link>
      <description>&lt;P&gt;Hi Andrew, is this an internal bug? Cannot seem to get information for that.&lt;/P&gt;&lt;P&gt;We get the same error while running the latest NetAppdocs on every 9.1 cluster we are installing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;S N="Activity"&amp;gt;Get-NcRoleConfig&amp;lt;/S&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;S N="Reason"&amp;gt;InvalidOperationException&amp;lt;/S&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;S N="TargetName"&amp;gt;clustername&amp;lt;/S&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;S N="TargetType"&amp;gt;NcController&amp;lt;/S&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;S N="Description"&amp;gt;There is an error in XML document (1, 129).&amp;lt;/S&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 07:41:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-ncroleconfig-return-error-with-ontap-9-X-There-is-an-error-in-XML-document-1/m-p/134106#M5469</guid>
      <dc:creator>tim_vd</dc:creator>
      <dc:date>2017-08-31T07:41:31Z</dc:date>
    </item>
  </channel>
</rss>

