80177A 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): the electric function of the LOWER tailgate section (X5/X7 split tailgate) is available only to a restricted extent. Usually after an obstruction, a voltage dip or a manual operation; if the lower flap opens and closes normally, clear the code. If not, open/close it fully once and check the soft-close / lock codes of the lower section.