Set idAttribute to null to avoid errors on inserting data.