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.]
- AIQUM datasource removed and readded to get the certificate details
- Removed and added ONTAP details under credentials
- Manually triggered "
Acuire Now
" jobs or scheduled acquire jobs work