<?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 WFA and ONTAP 9.10 upgrade type casting issue. in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-and-ONTAP-9-10-upgrade-type-casting-issue/m-p/171466#M28307</link>
    <description>&lt;P&gt;After ONTAP 9.10 upgrade, workflows containining the 'Create Volume' step (and&amp;nbsp; possibly others) failed with the previous version test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem turned out to be a typecasting issue in the Compare-Ontapversions function within the WFAWrapper PS module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fix, add typecastinfg to [int] the following lines in the&amp;nbsp;Compare-Ontapversions function (137-138, 148-150).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Corrected code is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------&lt;/P&gt;&lt;P&gt;if($FirstVersion -match "^(?&amp;lt;major&amp;gt;\d+)[.](?&amp;lt;minor&amp;gt;\d+)[.](?&amp;lt;micro&amp;gt;\d+)$")&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $major1 = [int]$matches.major&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $minor1 = [int]$matches.minor&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $micro1 = [int]$matches.micro&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; throw "The input FirstVersion is not in the expected format."&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if($SecondVersion -match "^(?&amp;lt;major&amp;gt;\d+)[.](?&amp;lt;minor&amp;gt;\d+)[.](?&amp;lt;micro&amp;gt;\d+)$")&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $major2 = [int]$matches.major&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $minor2 = [int]$matches.minor&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $micro2 = [int]$matches.micro&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 10:09:23 GMT</pubDate>
    <dc:creator>MikeC_12</dc:creator>
    <dc:date>2025-06-04T10:09:23Z</dc:date>
    <item>
      <title>WFA and ONTAP 9.10 upgrade type casting issue.</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-and-ONTAP-9-10-upgrade-type-casting-issue/m-p/171466#M28307</link>
      <description>&lt;P&gt;After ONTAP 9.10 upgrade, workflows containining the 'Create Volume' step (and&amp;nbsp; possibly others) failed with the previous version test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem turned out to be a typecasting issue in the Compare-Ontapversions function within the WFAWrapper PS module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fix, add typecastinfg to [int] the following lines in the&amp;nbsp;Compare-Ontapversions function (137-138, 148-150).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Corrected code is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------&lt;/P&gt;&lt;P&gt;if($FirstVersion -match "^(?&amp;lt;major&amp;gt;\d+)[.](?&amp;lt;minor&amp;gt;\d+)[.](?&amp;lt;micro&amp;gt;\d+)$")&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $major1 = [int]$matches.major&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $minor1 = [int]$matches.minor&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $micro1 = [int]$matches.micro&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; throw "The input FirstVersion is not in the expected format."&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if($SecondVersion -match "^(?&amp;lt;major&amp;gt;\d+)[.](?&amp;lt;minor&amp;gt;\d+)[.](?&amp;lt;micro&amp;gt;\d+)$")&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $major2 = [int]$matches.major&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $minor2 = [int]$matches.minor&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $micro2 = [int]$matches.micro&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:09:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-and-ONTAP-9-10-upgrade-type-casting-issue/m-p/171466#M28307</guid>
      <dc:creator>MikeC_12</dc:creator>
      <dc:date>2025-06-04T10:09:23Z</dc:date>
    </item>
  </channel>
</rss>

