The invention relates to a process for in-situ glyoxylation of
polyacrylamide in paper mills, board mills and the like, wherein a discontinuous batch glyoxylation reaction of an
aqueous reaction mixture is performed in a reactor vessel equipped with a drive stirrer to form an aqueous
polymer composition comprising glyoxylated
polyacrylamide. The process comprises forming or obtaining an
aqueous reaction mixture having a starting
viscosity and comprising a
polyacrylamide base
polymer having a weight average molecular weight of 30000 - 300000 g / mol and
glyoxal. The concentration of the polyacrylamide base
polymer in the reaction mixture is 1.5% - 8% higher than the critical concentration of the polyacrylamide base polymer. A base feed is added to the reaction mixture while measuring the
viscosity of the reaction mixture and / or a
process variable related to the
viscosity of the reaction mixture and allowing the in-situ glyoxylation reaction of the polyacrylamide base polymer in the reaction mixture to proceed. When a predetermined final viscosity value is reached, the base feed is terminated and an acid is added to the reaction mixture. The aqueous
polymer composition comprising glyoxylated polyacrylamide is removed from the reaction vessel.