I'm having this same problem. I am using a genuine Dell A/C adapter, and I just replaced the battery with an OEM one. Computer boots up and runs normally when on the wall power, but battery says it is plugged in and not charging. When not connected to wall power, it will not even turn on and the indicator light at the front flashes 4x Amber/1x white.
I read somewhere else on here that the error code could mean a fatal battery error. Could this really be the case? The battery is a genuine dell battery, and during startup the BIOS never throws a message saying the power supply is unrecognized or inadequate. Do I need to run a BIOS update? What am I missing? This seems such a strange problem to be getting when all other factors are controlled for. I'm not using any third-party hardware.