Two things I've noticed. Why don't you have a comma between the 3rd and 4th values here:
sb.AppendFormat("{0},'{1}','{2}''{3}');", doId1, splitItems[0], splitItems[1], splitItems[2]);
And also why don't you have ' around {0} since the value is not a number?
Both of these are probably causing issues, but I think the second issue is the cause of the error message. You probably need to fix both though.