Can you upload the .dxf file ? did you select all the polylines > edit > join ? 9 times out of 10 that`s whats wrong when I get that error.