801702 is a fault stored in your BMW's memory (an ISTA fault code, not a standard OBD-II P-code).
What it means: Tailgate module (HKFM): automatic tailgate operation — the tailgate position is unknown to the module (it lost its end positions). Typical after a battery disconnect/discharge or if the tailgate was moved by hand during operation. Safe to drive: open and close the tailgate fully once (by hand if needed) so it relearns its positions; if automatic operation still does not work, have it initialised in ISTA.