when did the doctrine of papal infallibility begin
This doctrine was defined dogmatically at the First Ecumenical Council of the Vatican of 1869 -- 1870, but had been defended before that, existing already in medieval theology and being the majority opinion at the time of the Counter-Reformation.