The document presents a novel shunt active power filter (SAPF) utilizing an asymmetric four-leg cascaded H-bridge multi-level inverter powered by a photovoltaic source. It employs a three-dimensional space vector modulation technique to produce a 27-level output with minimal harmonic distortion and includes fault-tolerant features that allow operation despite failures in one leg of the inverter. Simulations demonstrate significant reductions in total harmonic distortion under both normal and fault conditions, confirming the effectiveness of the proposed SAPF design.