throw error if no calendar key is specified.