List<Account> acctList = [select Id,billingcountry, shippingcountry from Account where Subsidiary__c = 'VTI China' and billingcountry = null ];
for(Account a : acctList){
a.billingcountry = 'CN';
}
update acctList;
This is a bit awkward, I've generated a list and do the batch update, but there is still an error message says:
Line: 7, Column: 1 System.DmlException: Update failed. First exception on row 0 with id 0010y00001ZveCfAAJ; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record or 200 records: 0010y00001ZveCfAAJ,001C000001F4HeuIAF,...
Can anyone help to understand it? Thanks.