Skip to content

Regression of: Variable substitution not working for JSON array with index zero #9918

@SeanStanway-Octopus

Description

@SeanStanway-Octopus

Severity

one customer reported, can recreate on latest cloud instance

Version

2026.1.11242, 2026.2.999

Latest Version

None

What happened?

Unable to use a JSON array, or JSON object array, when trying to select the zero index. The value is not found/is written as blank. This happens both in script bodies, as well as utilisation in the selection of scripts themselves.

This was previously fixed in #9888

Reproduction

See #9888 reproduction. Same failure occurs.

Error and Stacktrace

From customer:
16:09:06   Error    |         Error: Invalid input: RPC ListVolumes Field managedcatalog.volume.ListVolumes.schema_name: name "#{workspace.groups.users[0].name}" is not a valid name. Valid names must contain only alphanumeric characters and underscores, and cannot contain spaces, periods, forward slashes, or control characters.

More Information

Variable:
Image

Usage:
Write-Host "Checking:" $OctopusParameters["Workspace.Catalog.Schemas[0]"]

Result:
Image

Workaround

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugThis issue represents a verified problem we are committed to solving

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions