If mapping does not exist, raise error with helpful message