5.4 140T miles. It has exhaust leak P's side at a CAT why wont idle? on 1997 Ford Expedition

Codes only say bad O2 sensors.

Asked by for the 1997 Ford Expedition
Fix the obvious stuff first!! Like the exhaust leak, then clear codes, if 02 code comes back replace it. 02 cant read correctly with leak. This just might fix all of your problems.
Thanks but I failed to mention the O2 faults came first and I was told that they can't make your engine run bad. Can the lack of back-pressure from the leak cause the bad idle?
You were told wrong! Fix what you know is needed first. Then if it needs more start the diagnosis!