Octopus script Unable to locate the Extract location.

krishna_chaitanya_k's Avatar


16 Jan, 2018 06:33 PM


The below script is returning NULL, could you please help us resolve the issue.

Search discussions$extractPath = $OctopusParameters['Octopus.Action.Output.Package.InstallationDirectoryPath'] Write-Host "$extractPath"


  1. Support Staff 1 Posted by Kenneth Bates on 17 Jan, 2018 01:14 AM

    Kenneth Bates's Avatar

    Hi Krishna,

    Thanks for getting in touch! When calling output variables like this, you'll need to reference the name of the step which sets the variable (which will be your package step). The following script should retrieve the value you're after.

    $extractPath = $OctopusParameters['Octopus.Action[PackageStepName].Output.Package.InstallationDirectoryPath'] 
    Write-Host "$extractPath"

    Let me know how you go or if you have any further questions. :)

    Best regards,


  2. 2 Posted by shahanur on 24 Sep, 2018 05:10 PM

    shahanur's Avatar

    hi Krishna,

    This does not work for me. I am using Run Script step. Any idea?


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac