Throw error if required data attributes aren't present