Error when selecting `Deploy new release` option on version controlled project's scheduled trigger
Team
- [X] I've assigned a team label to this issue
Severity
Found internally
Version
Reproduced in 2022.3.10382 & 2022.4.1372-hotfix.1656
Latest Version
No response
What happened?
When selecting Deploy new release option in a scheduled trigger for a version controlled project, the frontend throws an error preventing the trigger from being saved.
Reproduction
- Create a scheduled trigger in a version controlled (CaC) project
- Select
Deploy new releasein the trigger - See error
Error and Stacktrace
An unexpected error occurred in Octopus v2022.3.10382: "Error: Can't map GitRefType.Unknown to RefTypes" in g in GitRefSelector in GitRefFormSection in div in ForwardRef
More Information

Workaround
Rather than selecting Deploy new release, leave the Trigger Action set to Deploy latest release then fill out the relevant information and click SAVE. Once the trigger is created, go back and edit the newly created trigger and set the Trigger Action to Deploy new release and make any necessary adjustments from there.
This is happening in Samples (https://samples.octopus.app/app#/Spaces-1/projects/aws-octosubscriber/deployments) if you need a repro env.
Another user is experiencing this issue. Internal ticket link
A user is experiencing this issue and the workaround is not working for them: internal ticket link
Release Note: Fix error when creating scheduled trigger on Git project
:tada: The fix for this issue has been released in:
| Release stream | Release |
|---|---|
| 2022.4 | 2022.4.8267 |
| 2023.1 | 2023.1.4403 |
| 2023.2+ | all releases |