Nintendo dsi xl not charging

I’ve recently bought 2 nintendo dsi xls and one of them doesnt charge at all. I have tried fixing it. I replaced the charging port but no luck. I have tried another charging module from the other dsi (that charges fine) and still nothing.
I have to mention that the handheld works well exept the charging part.
Anybody have any ideea what could it be?