Chosen Solution
iPad indicates lightning cable is connected with the icon in the right top side but the battery will not charge.
@stupac start by cleaning the lightning port and try a different cable as well. You must also make sure that you have the right charger and that the charger is working properly. If all that is okay, you may need to replace the lightning connector, follow this guide. While you are at it, replace the battery. Once you got all that accomplished, re-evaluate. Should it still do the same thing, you will have to take a closer look at the components on your logicboard. It is possible that your power management IC has failed or any of the components that make up your charging circuitry. Try the easy (relative) stuff first.
I found a 10W charger and it worked!!! ipad was cycling through one and off endlessly. now it is charging. I called apple help chat and they were a helpful as a suitcase without a handle!
You may be using an iPhone charger or an unofficial one. Generally, iPhone chargers are too slow for iPads because they do not provide enough power for the iPad to stay on and charger the battery. If you don’t have one already, use an official Apple iPad charger because they are rated for a higher wattage and provide the necessary power. You can tell what type of charger it is via the small grey writing on the bottom of the charger which will generally say ‘iPod Charger’ or ‘iPhone Charger’.