Preventing sync error when primary key is not available.