Skip to content
Community forum

Saga ends in compensation_failed

SolvedSupero SupportSupero team asked

Common question, written up by the Supero team.

Error message
compensation_failed
Link

1 answer

Accepted answer
Accepted answer

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.

The 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.

Supero Integrations teamSupero team answered
Link

Your answer

Saga ends in compensation_failed | Supero Community