Breakdown of Gestern ist mir ein kleines Missgeschick passiert, als ich den Kaffee über das Heft geschüttet habe.
Questions & Answers about Gestern ist mir ein kleines Missgeschick passiert, als ich den Kaffee über das Heft geschüttet habe.
The verb passieren (to happen) normally forms the perfect tense with sein, not haben, because it describes a change of state / an event occurring, similar to kommen, gehen, sterben, etc.
- Es ist etwas passiert. – Something has happened.
- ❌ Es hat etwas passiert. – Incorrect in standard German.
So Gestern ist mir ein kleines Missgeschick passiert literally: Yesterday a small mishap has happened to me.
Mir is the dative form of ich. With passieren, the person affected is expressed in the dative:
- Mir ist ein Missgeschick passiert. – A mishap happened to me.
- Dir ist ein Missgeschick passiert. – A mishap happened to you.
The thing that happens is the grammatical subject (here: ein kleines Missgeschick), and the person it happens to is in the dative.
You cannot say *Ich ist ein Missgeschick passiert; the structure of passieren requires dative + subject, not a nominative pronoun for the person affected.