RE: "Your battery has expired permanent failure and needs to be replaced"
Go to BIOS by pressing F2 and provide me the battery status.
Is AC Adapter LED is on when connected?
Have you tried a different adapter?
Kindly run the diagnostics by pressing F12 and let me know the results.
Also, please click my DELL-username and write me a private message with the service tag and your Name for case records.
Let us know if you have any other queries.