Patients with AIP are characterized by the partial deficiency of the hydroxymethylbilane synthase. Here, HMBS is linked to autoimmune pancreatitis.