Can't create release with octo.exe 4.5.0

(žygimantas Kazlauskas) #1

Hi there!
I think latest TFS extension have buggy octo.exe tool (4.5.0 version).
When I try to create release from TFS, I get error:
Error converting value "Variable" to type 'Octopus.Client.Model.DeploymentStepCondition'.

When I try to run octo.exe 4.45.0 version (got from with same arguments, everything runs OK.

Is there a solution to downgrade TFS extension? :slightly_smiling_face:

P.S. In my deployment process i have a step with
Run Condition: Variable

(Henrik Andersson) #2

Hi Zygimantas,

Thanks for getting in touch and I’m sorry to hear that you are having these issues.

Can you send me the full TFS build log from the build that failed with that error to help us troubleshoot your issue.

Thank you and best regards,

(žygimantas Kazlauskas) #3

Ok. I was trying to reproduce the bug and saw that there is new version of “Create Octopus release” 3.* task in TFS. Updated my build definition and the bug is gone.
Now i see that “Create Octopus Release” step is using octo.exe 4.45.0 version and there is no bug.

Just for reference, build log with old “Create Octopus Release” 2.* (using octo.exe 4.5.0):

Starting: Create Octopus Release: Projects-6
Task         : Create Octopus Release
Description  : Create a Release in Octopus Deploy
Version      : 2.0.39
Author       : Octopus Deploy
Help         : Version: 2.0.39. [More Information](
Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.
"C:\Builds\a2\_work\_tasks\OctopusCreateRelease_4e131b60-5532-4362-95b6-7c67d9841b4f\2.0.39\Octo.exe" create-release --project="DVS.release" --releaseNumber="" --channel="Default" --server=https://octopus:8443/ --apiKey=*** --enableServiceMessages --releaseNotesFile="C:\Builds\a2\_work\10\s\"
Octopus Deploy Command Line Tool, version 4.5.0
Build environment is Handshaking with Octopus server: https://octopus:8443/
Handshake successful. Octopus version: 2018.10.0; API version: 3.0.0
Authenticated as: Žygimantas Kazlauskas <> 
This Octopus Server supports channels
Finding project: DVS.release
Building release plan for channel 'Default'...
Finding deployment process...
Unable to process response from server: Error converting value "Variable" to type 'Octopus.Client.Model.DeploymentStepCondition'. Path 'Steps[8].Condition', line 873, position 29.. Response content: {
  "Id": "deploymentprocess-Projects-6",
  "ProjectId": "Projects-6",
  "Steps": [
      "Id": "9c03abb4-c4a2-492b-ae34-1fc8c83c6a71",
      "Name": "IIS Configuration Backup",
      "PackageRequirement": "LetOctopusDecide",
      "Properties": {
        "Octopus.Action.TargetRoles": "DVS-DB"
      "Condition": "Always",
      "StartTrigger": "StartAfterPrevious",
      "Actions": [
          "Id": "f5aa7155-2433-40cd-af6b-11df69df2665",
          "Name": "IIS Configuration Backup",
          "ActionType": "Octopus.Script",
          "IsDisabled": false,
          "CanBeUsedForProjectVersioning": false,
          "IsRequired": false,
          "WorkerPoolId": null,
          "Environments": [
          "ExcludedEnvironments": [],
          "Channels": [],
          "TenantTags": [],
          "Packages": [],
Error from Octopus server (HTTP 200 OK)
Exit code: -7
Process 'Octo.exe' exited with code '-7'.
Finishing: Create Octopus Release: Projects-6

I think this bug occurs when in your process you have step with Run Condition: Variable

(Henrik Andersson) #4

Hi Zygimantas,

Great to hear that you were able to resolve this issue.

The error would be due to that the version of octo.exe in the old v2 extension does not support the Run Condition: Variable configuration as it was introduced in a later version of Octopus.

Thank you and best regards,