Excludeforwithholding column of C_INVOICELINE table is a boolean column and it must only accept Y or N values. When "creating lines from" is processed, Excludeforwithholding is set to null.