E7 means the outdoor fan motor is not running as the board expects. That fan pulls air through the condenser, and without it the system cannot reject heat, so pressures climb and the unit protects itself. Standing next to a unit with E7, the compressor is usually audible and no air is moving out of the top of the casing.
The outdoor fan works in the harshest spot in the system: sun, rain, grit and constant heat. Bearings wear and windings fail, and the motor stops reporting the speed the board wants. A motor that is stiff to turn by hand has already answered the question. These are replaced rather than repaired.
Leaves, grass clippings and nesting material collect around the guard and in the blade, loading the motor until it cannot hold speed. A cracked or unbalanced blade does the same and adds vibration. Clearing the debris is free and resolves a share of E7 codes before a part is considered.
The fan motor plugs into the outdoor board, and both the plug and its harness live with everything the unit lives with. Corrosion at the pins, a conductor rubbed through against the casing or rodent damage will all produce E7 on a motor that still works. The plug gets checked before the part gets ordered.
With the power off, the blade is turned by hand and the guard and casing checked for leaves, grass and nesting material. It should spin freely with no wobble and no rubbing. Anything restricting it is removed before the motor is considered, because that is the cheapest possible fix on this page.
The motor is checked for winding continuity and for a bearing that is stiff or noisy. Play in the shaft and a blade that rocks point at the bearing rather than the board. Where the motor turns freely but the board reports a speed fault, the internal speed sensor is the likely failure.
The plug at the outdoor board is unplugged, inspected for corrosion and reseated, and the harness is traced where it passes the casing edge. Each conductor is continuity tested. On an intermittent E7 this is where the fault usually sits, and it costs nothing to check.