missionCompleted does not working

The missionCompleted trigger doesn’t work and the mission always fails. any ideas to avoid this?