This study describes the reasons of failure and corrosion in pipelines and tanks used in ice-cream factory located in Soltanabad Industrial Region, Shiraz (Iran). The present research shows that the chloride level of the water is an important factor in determining the resistance of stainless steel due to crevice corrosion. Laboratory research shows that for the majority of natural, raw and potable water with pH in the range 6.5 to 8; crevice corrosion of 304/304L is rare below about 200 ppm of chlorides. Also crevice corrosion of 316 to 316L with the same pH is rare below about 1000 ppm of chlorides. Chemical analysis of the water of industrial region shows that it contains 386.36 ppm chlorides. So, the stainless steel pipeline type 304, which is used in the factory did not have any resistance against the crevice corrosion and rapidly corroded from those points which were more susceptible such as welded zone. Since the pipes were corroded around the welded zones, metallographic studies were conducted in this area which revealed that the welds were not of high quality and contained holes in the welded zones as well as imperfections such as lack of diffusion and incomplete penetration. Finally preventing methods of pipelines corrosion is discussed.