there should be sensor's in the tank, , and they can fail
I have also seen some DEF systems, that developed some sort of crystal like build up that coated insides of tanks and sensors!
so, when you had tank drained did you look inside tank to se if any build up was in there?