I am deploying certain files using Octopus 2019 version, but suddenly i got the below error today during deployment. I am not sure what the Octopus step is trying to look into the "Work"folder? The step where this error occured is a normal “Powershell script” step template of Octopus. And this was working on other machines before, this is the first time such error occured.
E:\Integration\Work\20200320131409-65313-546\Script.ps1 : You cannot call a method on a null-valued expression.
At E:\Integration\Work\20200320131409-65313-546\Bootstrap.Script.ps1:1746 char:1
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Script.ps1
Please help if you have any clue about this error. Thanks in advance.