Severity
Sev-2
Version
Reported on 2026.1
Latest Version
I could reproduce the problem in the latest build
What happened?
When a Compliance Policy OCL has an invalid violation_action (anything other than block or warn), the user can publish the policy. When you publish the policy, you get the error "Cannot parse 'error' to 'CompliancePolicyViolationAction'" on the policy screen, which prevents the user from accessing the list of policies.
This error persists even after the version-controlled OCL is corrected, because the invalid version persists in the DB.
Reproduction
- Create a policy
- Edit policy (via git) and change "violation_action" to "error" (Invalid value)
- Go into Octopus > Platform Hub > Policies > Policy > Publish
- Go back to the policy screen
- Observe the error
Error and Stacktrace
More Information
No response
Workaround
Severity
Sev-2
Version
Reported on 2026.1
Latest Version
I could reproduce the problem in the latest build
What happened?
When a Compliance Policy OCL has an invalid
violation_action(anything other thanblockorwarn), the user can publish the policy. When you publish the policy, you get the error "Cannot parse 'error' to 'CompliancePolicyViolationAction'" on the policy screen, which prevents the user from accessing the list of policies.This error persists even after the version-controlled OCL is corrected, because the invalid version persists in the DB.
Reproduction
Error and Stacktrace
More Information
No response
Workaround