Exception on invalid metadata