throw error if no groupId in logging