Pancreas surgery might be a treatment option when the pancreas is inflamed, causing the ducts outside the pancreas to become blocked or parts of the pancreas to become damaged or infected.