The majority of mainline problems don’t require sewer excavation. Most can be solved with “no-dig” drain cleaning/clearing techniques like cabling or Hydro Jetting.
However, there are issues, such as burst or cracked pipes, that make the more expensive sewer excavation unavoidable. These are 2 types of sewer excavation and information to help you determine if you even need it.