In AIP, different mutations lead to a decreased production and function of endogenous PBGD (also called as HMBS), which cause an accumulation of ALA and PBG and with that clinical manifestations. Here, HMBS is linked to autoimmune pancreatitis.