<?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: Some workflows stopped working after WFA upgrade in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152500#M27376</link>
    <description>&lt;P&gt;Hi Zoli&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Okay the WFA snapshot pack installed on WFA5 and your query works successfully as root. What's the output of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SHOW GRANTS FOR 'restricted'@'localhost';&lt;/PRE&gt;
&lt;P&gt;Is it possible the "restricted" database user does not have appropriate permissions the "cm_storage_smsv" database???&lt;/P&gt;
&lt;P&gt;If the result is that the user does not have to permission connect to MySQL as root and&amp;nbsp; grant permissions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;GRANT ALL PRIVILEGES ON cm_storage_smsv.* TO 'restricted'@'localhost';&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: The above command will grant full control to the database, that might not be appropriate for your environment.&lt;/P&gt;
&lt;P&gt;Assuming you limit access to the "restricted" user (IE SELECT read-only) then...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;GRANT SELECT ON cm_storage_smsv.* TO 'restricted'@'localhost';&lt;/PRE&gt;
&lt;P&gt;Does that fix the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2019 00:27:12 GMT</pubDate>
    <dc:creator>mbeattie</dc:creator>
    <dc:date>2019-11-22T00:27:12Z</dc:date>
    <item>
      <title>Some workflows stopped working after WFA upgrade</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152453#M27371</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've a problem with a workflow after I've updated WFA version from 4.1 to 5.0.1.&amp;nbsp; An user input query which select a snapshot drops an error when I wanted to modify/save the workflow:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.JPG" style="width: 899px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/9396i71EE91AD00D4E8CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.JPG" style="width: 336px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/9395i3A9B19B6FA36360A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.JPG" alt="2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Addionally I have a&amp;nbsp;&lt;SPAN&gt;Acquire data source" and “Wait for data source acquisition” fail error, but I will try this souliton suggested here:&amp;nbsp;&lt;A href="https://kb.netapp.com/app/answers/answer_view/a_id/1087616" target="_blank"&gt;https://kb.netapp.com/app/answers/answer_view/a_id/1087616&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But right now I'm not able to save it because of the above mentioned error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What do you Guys suggest?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Many Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Zoltan&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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 12:08:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152453#M27371</guid>
      <dc:creator>Zoltan_Somogyvari</dc:creator>
      <dc:date>2025-06-04T12:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Some workflows stopped working after WFA upgrade</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152466#M27373</link>
      <description>&lt;P&gt;Hi Zoltan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On your WFA5 server do you have the pack\datasource configured for the "cm_storage_smsv" schema? Can you run the query externally to WFA? EG via something like HeidiSQL &lt;A title="https://www.heidisql.com/download.php" href="https://www.heidisql.com/download.php" target="_blank" rel="noopener"&gt;https://www.heidisql.com/download.php&lt;/A&gt; download the 64 bit .exe and copy it to your MySQL lib directory then connect as the default read-only WFA database user (Usr: wfa. Pwd: &lt;STRONG&gt;&lt;U&gt;W&lt;/U&gt;&lt;/STRONG&gt;fa123).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible you need to install the "&lt;SPAN class="st"&gt;Manage SnapMirror-SnapVault Cascade Relationship - Version 1.0.0&lt;/SPAN&gt;" Pack on your WFA5 server? &lt;A title="https://automationstore.netapp.com/pack-detail.shtml?packUuid=ba11fac4-9710-4f2b-90ed-a7efbd4e723a&amp;amp;packVersion=1.0.0" href="https://automationstore.netapp.com/pack-detail.shtml?packUuid=ba11fac4-9710-4f2b-90ed-a7efbd4e723a&amp;amp;packVersion=1.0.0" target="_blank" rel="noopener"&gt;https://automationstore.netapp.com/pack-detail.shtml?packUuid=ba11fac4-9710-4f2b-90ed-a7efbd4e723a&amp;amp;packVersion=1.0.0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also additionally you might want to check there are no issues with snapshot timestamps and timezones in your environment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://kb.netapp.com/app/answers/answer_view/a_id/1084443/~/the-key-timestamp-for-dictionary-snapshot-is-in-utc-time%2C-instead-of-the" href="https://kb.netapp.com/app/answers/answer_view/a_id/1084443/~/the-key-timestamp-for-dictionary-snapshot-is-in-utc-time%2C-instead-of-the" target="_blank" rel="noopener"&gt;https://kb.netapp.com/app/answers/answer_view/a_id/1084443/~/the-key-timestamp-for-dictionary-snapshot-is-in-utc-time%2C-instead-of-the&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps? Please let me know if you have any questions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 00:15:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152466#M27373</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2019-11-21T00:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Some workflows stopped working after WFA upgrade</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152493#M27375</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for suggesting&amp;nbsp;&lt;SPAN&gt;HeidiSQL, I've just wanted to get some sql tool to test. With this I was able to&amp;nbsp; run the query, (only with root user, wfa read olny user drops access denied)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So I am able to ask snap from db with this tool with sql root user:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kezzel ment.JPG" style="width: 555px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/9401iA49968C0F312E6FA/image-dimensions/555x477?v=v2" width="555" height="477" role="button" title="kezzel ment.JPG" alt="kezzel ment.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But Wfa drops error when try to test it:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wfabol nem.JPG" style="width: 567px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/9400iB1ED043456718BD7/image-dimensions/567x376?v=v2" width="567" height="376" role="button" title="wfabol nem.JPG" alt="wfabol nem.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've checked sql user table and this is what i have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="users.JPG" style="width: 999px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/9403i43092B8568A9CEFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="users.JPG" alt="users.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this looks ok?&amp;nbsp; wfa user does not have any right.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also cheked on a fresh clean install of wfa 5.0.1, and the user table is same ase here.&lt;/P&gt;
&lt;P&gt;What do you think?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Zoli&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 19:20:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152493#M27375</guid>
      <dc:creator>Zoltan_Somogyvari</dc:creator>
      <dc:date>2019-11-21T19:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Some workflows stopped working after WFA upgrade</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152500#M27376</link>
      <description>&lt;P&gt;Hi Zoli&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Okay the WFA snapshot pack installed on WFA5 and your query works successfully as root. What's the output of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SHOW GRANTS FOR 'restricted'@'localhost';&lt;/PRE&gt;
&lt;P&gt;Is it possible the "restricted" database user does not have appropriate permissions the "cm_storage_smsv" database???&lt;/P&gt;
&lt;P&gt;If the result is that the user does not have to permission connect to MySQL as root and&amp;nbsp; grant permissions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;GRANT ALL PRIVILEGES ON cm_storage_smsv.* TO 'restricted'@'localhost';&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: The above command will grant full control to the database, that might not be appropriate for your environment.&lt;/P&gt;
&lt;P&gt;Assuming you limit access to the "restricted" user (IE SELECT read-only) then...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;GRANT SELECT ON cm_storage_smsv.* TO 'restricted'@'localhost';&lt;/PRE&gt;
&lt;P&gt;Does that fix the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 00:27:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152500#M27376</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2019-11-22T00:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Some workflows stopped working after WFA upgrade</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152505#M27380</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for the "Acquire data source" issue there is a better solution than the workaround mentioned in the KB. NetApp released an update of the "&lt;A href="https://automationstore.netapp.com/pack-detail.shtml?packUuid=85244169-6dbf-4d59-8c05-44a3d39baea9&amp;amp;packVersion=1.1.0" target="_self"&gt;WFA pack with common entities&lt;/A&gt;" in the Automation Store.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 12:59:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152505#M27380</guid>
      <dc:creator>moep</dc:creator>
      <dc:date>2019-11-22T12:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Some workflows stopped working after WFA upgrade</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152507#M27381</link>
      <description>&lt;P&gt;HI Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/2305"&gt;@mbeattie&lt;/a&gt;&amp;nbsp; sql command solved the permission problem for snapshots. Thanks!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/47204"&gt;@moep&lt;/a&gt;&amp;nbsp; thank you for suggestion, imported DAR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks again, I think WF now will be ok, I'll get back to you when we are executing it next time!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Zoli&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 13:55:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/152507#M27381</guid>
      <dc:creator>Zoltan_Somogyvari</dc:creator>
      <dc:date>2019-11-22T13:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Some workflows stopped working after WFA upgrade</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/153031#M27421</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunatelly I still have some problem with data aquisition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get the following error when the&amp;nbsp;Refresh Environment wf running:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;03:37:04.127 ERROR [Wait for data source acquisition] Wait Command failed for Workflow 'Refresh Environment' with error : could not find ParserDetails.ini in C:/Perl64/site/lib/XML/SAX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any suggestion what to check?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many Thanks&lt;/P&gt;
&lt;P&gt;Zoli&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 14:11:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/153031#M27421</guid>
      <dc:creator>Zoltan_Somogyvari</dc:creator>
      <dc:date>2019-12-13T14:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Some workflows stopped working after WFA upgrade</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/153051#M27423</link>
      <description>&lt;P&gt;Hi Zoli,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hit the same issue for a customer. The solution i chose was not to use PERL and instead rewrite the commands to acquire the datasource and wait for datasource acquisition via the REST API using PowerShell. Here is the command code i used:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;acquire_wfa_datasource:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Param(
   [Parameter(Mandatory=$False, HelpMessage="The Protocol name")]
   [ValidateSet("https","http")]
   [String]$Protocol="https",
   [Parameter(Mandatory=$True, HelpMessage="The WFA Server hostname, FQDN or IP Address")]
   [String]$WfaServer,
   [Parameter(Mandatory=$True, HelpMessage="The WFA Datasource name")]
   [String]$DataSourceName
)
#'------------------------------------------------------------------------------
#'Set the certificate policy and TLS version.
#'------------------------------------------------------------------------------
Add-Type @"
   using System.Net;
   using System.Security.Cryptography.X509Certificates;
   public class TrustAllCertsPolicy : ICertificatePolicy {
   public bool CheckValidationResult(
   ServicePoint srvPoint, X509Certificate certificate,
   WebRequest request, int certificateProblem) {
      return true;
   }
}
"@
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls12'
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
#'------------------------------------------------------------------------------
#'Acquire the WFA datasource
#'------------------------------------------------------------------------------
$credentials = Get-WFACredentials $WfaServer
[String]$uri = "$Protocol`://$WfaServer/rest/data_sources/$DataSourceName/jobs"
Try{
   [xml]$result = Invoke-RestMethod -Uri $uri -Method "POST" -ContentType "Application/JSON" -Credential $credentials
   Get-WFALogger -Info -Message "Acquired Datasource ""$DataSourceName"" using URI ""$uri"""
}Catch{
   Write-Warning -Message $("Failed acquiring Datasource ""$DataSourceName"" using URI ""$uri"". Error " + $_.Exception.Message)
}
#'------------------------------------------------------------------------------
#'Enumerate the VMWare session ID from the response and add it as a return paramater..
#'------------------------------------------------------------------------------
[String]$jobId = $result.acquisitionJob.jobId
If(-Not([String]::IsNullOrEmpty($jobId))){
   Add-WfaWorkflowParameter -Name "data_source_acquisition_job_id" -Value $jobId -AddAsReturnParameter $True
   Get-WFALogger -Info -Message "Added WFA datasource acquisition Job ID ""$jobId"" as a return paramater"
}Else{
   Throw "Failed acquiring WFA datasource ""$DataSourceName"""
}
#'------------------------------------------------------------------------------&lt;/PRE&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;wait_wfa_datasource:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Param(
   [Parameter(Mandatory=$False, HelpMessage="The Protocol name")]
   [ValidateSet("https","http")]
   [String]$Protocol="https",
   [Parameter(Mandatory=$True, HelpMessage="The WFA Server hostname, FQDN or IP Address")]
   [String]$WfaServer,
   [Parameter(Mandatory=$True, HelpMessage="The WFA Datasource name")]
   [String]$DataSourceName,
   [Parameter(Mandatory=$False, HelpMessage="The WFA Datasource aquisition Job ID")]
   [Int]$JobId,
   [Parameter(Mandatory=$False, HelpMessage="The WFA Datasource aquisition Job ID")]
   [Int]$TimeOut=60,
   [Parameter(Mandatory=$False, HelpMessage="The WFA Datasource aquisition Job ID")]
   [Int]$WaitInterval=3
)
#'------------------------------------------------------------------------------
#'Set the certificate policy and TLS version.
#'------------------------------------------------------------------------------
Add-Type @"
   using System.Net;
   using System.Security.Cryptography.X509Certificates;
   public class TrustAllCertsPolicy : ICertificatePolicy {
   public bool CheckValidationResult(
   ServicePoint srvPoint, X509Certificate certificate,
  WebRequest request, int certificateProblem) {
      return true;
   }
}
"@
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls12'
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
#'------------------------------------------------------------------------------
#'Enumerate WFA credentials.
#'------------------------------------------------------------------------------
$credentials = Get-WFACredentials $WfaServer
#'------------------------------------------------------------------------------
#'Enumerate the WFA datasource acquisition job ID using a WFA return paramater if not provided.
#'------------------------------------------------------------------------------
[String]$returnParameter = "data_source_acquisition_job_id"
If(-Not($JobId)){
   [Int]$JobId = Get-WfaWorkflowParameter -Name $returnParameter
}
If(-Not([String]::IsNullOrEmpty($JobId))){
   Get-WFALogger -Info -Message "Enumerated  datasource aquisition Job ID ""$jobId"" from WFA return Parameter ""$returnParameter"""
}Else{
   Throw "Failed enumerating WFA Return Parameter ""$returnParameter"""
}
#'------------------------------------------------------------------------------
#'Enumerate the WFA datasource aquisition Job ID status and wait for completion.
#'------------------------------------------------------------------------------
[Int]$acquired = 0
[Int]$waited   = 0&lt;BR /&gt;[String]$uri   = "$Protocol`://$WfaServer/rest/data_sources/$DataSourceName/jobs/$JobId"
Get-WFALogger -Info -Message "Enumerating WFA Datasource aquisition Job ID ""$jobId"" using URI ""$uri"""
Do{
   Try{
      [xml]$result    = Invoke-RestMethod -Uri $uri -Method GET -ContentType "Application/JSON" -Credential $credentials
      [String]$status = $($result.acquisitionJob.JobStatus.status).ToLower();
      Get-WFALogger -Info -Message "Enumerated WFA Datasource acquisition Job ID ""$jobId"" status ""$status"" using URI ""$uri"""
      If($status -ne "completed"){
         Start-Sleep -Seconds $WaitInterval
         [Int]$waited += $WaitInterval
      }Else{
         [Int]$acquired = 1
      }
   }Catch{
      Throw $("Failed enumerating WFA Datasource aquisition Job ID ""$jobId"" using URI ""$uri"". Error " + $_.Exception.Message)
   }
}Until(($acquired -eq 1) -Or (($waited -ge $timeOut) -And $timeOut -ge 0))
#'------------------------------------------------------------------------------
#'Ensure an error is raised if the datasource was not aquired within the timeout.
#'------------------------------------------------------------------------------
If($acquired -eq 1){
   Get-WFALogger -Info -Message "Successfully acquired WFA Datasource ""$DataSourceName"". Waited a total of ""$waited"" seconds"
}Else{
   Throw "Failed acquiring WFA Datasource ""$DataSourceName"" within a timeout of ""$timeOut"" seconds"
}
#'------------------------------------------------------------------------------&lt;/PRE&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2019 04:30:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/153051#M27423</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2019-12-14T04:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Some workflows stopped working after WFA upgrade</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/153052#M27424</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also this function might be useful for enumerating the WFA FQDN. Call it with quotes. EG: get_wfa_fqdn('')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;def get_wfa_fqdn(hostname){
   import java.net.InetAddress;
   InetAddress addr = java.net.InetAddress.getLocalHost().getCanonicalHostName();
   return toLower(addr);
}&lt;/PRE&gt;
&lt;P&gt;You need to ensure that there is a WFA Credential added which has the admin role to authenticate the REST API request to acquire the datasource. EG if your WFA server FQDN is 'wfa.netapp.com' then you need to add a credential using the FQDN 'wfa.netapp.com'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2019 05:46:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/153052#M27424</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2019-12-14T05:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Some workflows stopped working after WFA upgrade</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/153107#M27428</link>
      <description>&lt;P&gt;You can easily fix the missing ParserDetails.ini error. The file is simply missing from the ActivePerl installation which comes with WFA. Just create the C:\Perl64\lib\XML\SAX\ParserDetails.ini with the following content:&lt;/P&gt;
&lt;PRE&gt;[XML::SAX::PurePerl]
http://xml.org/sax/features/namespaces = 1&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Dec 2019 09:11:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/153107#M27428</guid>
      <dc:creator>moep</dc:creator>
      <dc:date>2019-12-17T09:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Some workflows stopped working after WFA upgrade</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/153110#M27430</link>
      <description>&lt;P&gt;Thank you Guys, I'll test your suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Zoli&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 11:48:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Some-workflows-stopped-working-after-WFA-upgrade/m-p/153110#M27430</guid>
      <dc:creator>Zoltan_Somogyvari</dc:creator>
      <dc:date>2019-12-17T11:48:01Z</dc:date>
    </item>
  </channel>
</rss>

