Pipe can become magnetised usually by storage with a North-South alignment with the earth magnetic field, or parallel alignment and close proximity to HV electric power lines. Earth Magnetic fields are not always north-south, so check a magnetic compass and store pipe with an East-West alignment. Store pipe as far away from HV lines as possible and always perpendicular to the line itself.
I've seen welders wrap their cables around the pipe(s) when welding to generate a magnetic input to prevent the arc from going sideways, but not sure how effective that is.
Not usually too difficult to de-magnetize pipes though.
Remember - More details = better answers
Also: If you get a response it's polite to respond to it.
By wrapping cables and pulsing current in decreasing increments in reversing directions does work well.
AC demag is usually easier and better. Sets are made to do this.
Just a point of clarification. Your issue is with magnetization. All steels are ferromagnetic and that part cannot be changed. They do very a lot though in how much field they can retain when they are magnetized.
I would like to know exactly which cables negative? grounding cable? to wrap around? and at what distance from the welding grove? and how many wraps required? and how to reduce the current?
Can we have clear steps that have been applied and succeeded using DC equipment?
That link by saplanti gives you most of the answers. Any experienced pipeline welder should have seen this before and is in control of current and can see the weld arc.
Remember - More details = better answers
Also: If you get a response it's polite to respond to it.