When the benefits outweigh the risks, the patient is not willing to further suffer the effects of the rectocoele and when the patient and the doctor come to agreement on the need for the surgery and accept the risks associated with it.
In good experienced hands, the surgery if very successful. Can there be failure? Yes, as with everything. Depends on the patient and on the situation.