ATM transaction failed money deducted । Complaint letter to bank

What if ATM doesn’t give money but debited my account? If an ATM fails to dispense cash but the amount is debited from your account, the first is should always be to report the incident to bank and ATM service provider