Animated door

I’ve animated a door using unity’s built in animation system. i want it to play when triggered but everytime i reach the trigger it says

The animation state open door could not be played because it couldn’t be found!
Please attach an animation clip with the name ‘open door’ or call this function only for existing animations.
CloseDoor:OnTriggerEnter(Collider) (at Assets/CloseDoor.cs:12)

i have figured out how to open the door