It varies by code, the code i am most familiar with is api-1104 and they allow 2 repair attempts then it is to be cut out. It also may differ by the company that owns the pipeline, some companies only allow 1 attempt.
Hi Omid
In terms of code requirements, the limitation of repairs would typically be given in the fabrication code. Many codes say nothing about this, so you need to fall back on end-user specifications or "good engineering practice". What the "good engineering practice" would be, depends on a number of issues such as:
1) Does the application require impact properties?
2) The type of material being weld repaired.
3) The criticallity of the application. (Media, pressure, line size, Structure type etc.)
4) The stress levels the component is exposed to.
5) The role of Post Weld Heat Treatment. (PWHT)
5) Practicalities such as distortion.
As such, there is no single answer to your question. Each repair needs to be assessed on its own merits.
If you were to give a specific situation, (Including the issues listed above.) then I could give you my thought process for that particular situation, but to give a broad answer will take much too much time. If you want a code based answer, then look at the code you are working to. (Not just welding code, but fabrication code also.)
Regards
Niekie