Don't insert invalid values to the database when XST fails.