Small dents can often be straightened in place. When the rail is worn too far, we can fit a stainless-steel cap over the old track, which gives the rollers a fresh, hard surface without pulling out the whole door frame.
We always check the rollers at the same time. A damaged track and worn rollers usually go together, and fixing only one leaves the problem half solved.