The job FILE.BACKUP.WINDOWS is failing: Exception found: System.Management.Automation.RuntimeException
search cancel

The job FILE.BACKUP.WINDOWS is failing: Exception found: System.Management.Automation.RuntimeException

book

Article ID: 259784

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The job FILE.BACKUP.WINDOWS is failing with the error message in the report log below when executed on Windows Server 2019. The issue does not occur on Windows Server 2012.

Report log:
====================================================================
DEBUG: 109+ >>>> [void] $consoleHost.GetType().GetProperty( "IsStandardOutputRedirected",
$bindingFlags).GetValue( $consoleHost, @() )
DEBUG: 66+ >>>> Write ""
DEBUG: ! CALL function '' (defined in file
'C:\Automic\Agents\windows\temp\JADOGRFB.TXT.ps1')

DEBUG: 67+ >>>> Write $("Exception found: " + $_.Exception.GetType().FullName);
DEBUG: 67+ Write $( >>>> "Exception found: " + $_.Exception.GetType().FullName);
Exception found: System.Management.Automation.RuntimeException
DEBUG: 68+ >>>> Write $("Exception text: " + $_.Exception.Message);
DEBUG: 68+ Write $( >>>> "Exception text: " + $_.Exception.Message);
Exception text: You cannot call a method on a null-valued expression.
DEBUG: 69+ >>>> Write "
====================================================================

Environment

Release : 12.x, 21.x

Cause

This issue was caused by different Powershell versions on Windows Server 2012 and Windows Server 2019.

Resolution

The issue will be fixed from AWA v21.0.5.