Skip to main content
NetApp Knowledge Base

Acquire datasource with powershell inside custom workflow fails in WFA with invalid character error after upgrading via backup and restore method

Views:
27
Visibility:
Public
Votes:
0
Category:
oncommand-workflow-automation-wfa
Specialty:
legacy
Last Updated:
1/17/2025, 4:16:15 PM

Applies to

  • OnCommand WorkFlow Automation (WFA) 5.1.1P7
  • Windows installation
  • ONTAP/ActiveIQ Unified Manager (AIQUM) datasource

Issue

  • WFA upgraded from 5.1.1P3 to 5.1.1 P7  via backup/restore method
  • Workflows with acquire datasource via powershell fails for both ONTAP/AIQUM datasource after upgrade
  • Error on wfa.log:

INFO  [com.netapp.wfa.command.execution.instance.impl.ExecutionInstanceDaoImpl] (Thread-4 (ActiveMQ-client-global-threads)) [acquire_wfa_datasource]   ### Command 'acquire_wfa_datasource' in 'POWER_SHELL' ###

DEBUG [com.netapp.wfa.command.execution.impl.executors.CommandExecutorImpl] (Thread-4 (ActiveMQ-client-global-threads)) Executing command 'acquire_wfa_datasource':POWER_SHELL
...
...
 
DEBUG [com.netapp.wfa.command.execution.impl.CredentialDaoImpl] (default task-7) Looking command credential by IP addresses (exact match) '[<WFA_Server_IP>, 0:0:0:0:0:0:0:1]'
INFO  [com.netapp.wfa.rs.execution.ExecutionResource] (default task-7) Execution : Credential Request Successfully processed for array host '<WFA_server>'
INFO  [com.netapp.wfa.command.execution.instance.impl.ExecutionInstanceDaoImpl] (default task-7) [acquire_wfa_datasource]   Credentials successfully provided for '<WFA_server>'
 
...
...
 
DEBUG [com.netapp.wfa.common.stats.MethodInvocationStatsInterceptor] (Thread-4 (ActiveMQ-client-global-threads)) COMPLETED                milliseconds=1967                     depth=25                       class=ScriptHandlerBaseImpl                        method=executeScriptCommand:Time taken to execute the script in a process  parameters=[[powershell, -ExecutionPolicy, remotesigned, -NonInteractive, -NoProfile, -InputFormat, Text, -OutputFormat, XML, -Command, $_Netapp_Uri = @($input)[0] ; D:\NetApp\WFA\jboss\..\PoSH\profile.ps1;Invoke-WfaCommand -Script './acquire_wfa_datasource14021644386637789484.ps1 -DataSourceName ''<ONTAP/AIQUM_Datasource>'' -Protocol ''https'' -WfaServer ''<WFA_server>'' ']]
[com.netapp.wfa.common.stats.MethodInvocationStatsInterceptor] (Thread-4 (ActiveMQ-client-global-threads)) FAILED       milliseconds=0      depth=25                       class=ScriptHandlerBaseImpl                        method=executeScriptCommand:reading error message from error stream            parameters=['_x0001_', hexadecimal value 0x01, is an invalid character. Line 1, position 559.]

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.