Open door buzzer

Hello, yesterday i found my xj40 with dead battery. I left the parking light on, because the buzzer does not work . I think this is not a buzzer failure, because if i leave the car in drive with engine off the buzzer works.
What can i check?