Script path error in Octopus deploy

** This is the Powershell script that is running in Octopus Deploy **
$productionDatabase = “Data Source=$ProductionDatabaseServer; Initial Catalog=$ProductionDatabaseName”
Test-DatabaseConnection $productionDatabase

$scriptsFolder = “C:\Octopus\OctopusServer\Repository\Packages\ISF_Dev01Package”

If (Test-Path $DatabaseUpdateResourcesDirectory) {
rmdir $DatabaseUpdateResourcesDirectory -Recurse -Force

OctopusError.pdf (43 KB)

Hi Bob,

Thanks for reaching out. This is a RedGate question that they’ll probably answer better than us. I’ve forwarded this question to RedGate support and they’ll reach you out through here.

Please let me know if you see they are not replying in some time



Hi, I’m from Redgate, can you replace line 1 with:

Hi, I’m from Red Gate, can you replace line


$productionDatabase = “Data Source=” + $ProductionDatabaseServer + “; Initial Catalog=” + $ProductionDatabaseName