The charging port, power cord ... If you see a red ‘X’ on the battery icon with a power plug, go to Microsoft Device Service & Repair to solve the battery detection issue.
Dirt or corrosion on the connector pins can prevent the Surface Pro 9 from charging. Unplug the power supply from the wall, clean the pins on the connector with a pencil eraser, and then use a cotton ...