98 XJ sport 4.0 inline 6 210k miles. Drove it to work awhile back and everything was normal. CEL was not on nor were any other warning lights. Several hours later after work and it would not start. It wouldn’t even crank. Tried jumping it and got it started but as soon as I took my foot of the accelerator it died and would not jump start again. It was completely dead, no lights, no radio, no nothing. Got it towed home and life happened and I was unable to work on it for almost 2 months. Finally got some time recently and started digging into it. Initially I thought it was the alternator so I removed it and took it and the battery to AutoZone for testing. They said the battery is still good but it was completely drained so they charged it for me. The alternator passed their test and just in case I took it to another AutoZone and it passed the Regulator portion and Rectifier portion of their test but returned N/A for the Lamp/Diode portion. The guy reran the test and it said the same thing.
So with a fully charged battery and the alternator testing good (kinda) I didn’t know what could be wrong so I bought a code reader. I reinstalled everything and plugged in the code reader and it said “No dtcs”. My first time using a code reader but I’m assuming that means no codes. So I tried starting it and the Jeep started right up. I drove it around the block a few times and again everything was normal, no CEL or any other warning lights. Got back home, shut it off and decided to try it again and nothing. Completely dead again. With the key in On position I get nothing. No door lights, no radio, no dash lights, nothing. Code reader of course returned nothing since the Jeep had no power.
I’ve gone through previous posts on here looking to see if anyone has had something similar but most are saying their battery drained over the course of several hours to several days so doesn’t sound like quite the same problem. Now I’m back to square one unsure what’s wrong. I’m an amateur DIY’er and have acquired most of my auto mechanic “know how” from owning and working on this Jeep, just to give an idea of my level of mechanic knowledge. Is it maybe the alternator since that lamp/diode portion wasn’t testing? What else could it be? Thanks in advance for any and all help!