Pancreatitis (inflammation of the pancreas) is the most common complication of endoscopic retrograde cholangiopancreatography (ERCP), a procedure for the diagnosis and treatment of disorders of the pancreas and bile duct.