{"id":1036,"url":"https://forum.supero.dev/t/saga-ends-in-compensation-failed-1036","title":"Saga ends in `compensation_failed`","type":"question","status":"solved","category":{"slug":"workflows","name":"Workflows & Automation"},"tags":["sagas","compensation"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-03T08:38:17.035Z","updated":"2026-12-03T08:38:17.035Z","upvotes":0,"error_text":"compensation_failed","environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"","answers":[{"id":"9e755697-1d60-45ec-a441-514d55639dde","url":"https://forum.supero.dev/t/saga-ends-in-compensation-failed-1036#post-9e755697-1d60-45ec-a441-514d55639dde","author":{"handle":"supero-integrations","name":"Supero Integrations team","team":true},"accepted":true,"official":false,"outdated":false,"sdk_version":null,"upvotes":0,"created":"2026-12-03T08:38:17.035Z","updated":"2026-12-03T08:38:17.035Z","body_markdown":"With `on_error: compensate`, each `service_call` and `crud_operation` step needs its own `compensate` block. A step without one stops the rollback there. A `manual` compensate kind ends the run in `compensation_failed` by design, so someone can finish the undo by hand.\n\nThe valid kinds are `automatic`, `manual`, `skip_acknowledged` and `none` (`skip` is rejected). Templates can't do arithmetic, so write an inventory reversal as a literal negative number. A compensate block can't contain `then_steps` or `else_steps`.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}