You need to sign in to do that
Don't have an account?
salmanmanekia
Required field missng Error.. Help
Hi,
Can someone have a look at it. Below is the code and the error
global void execute( Database.BatchableContext BC, List<sObject> listObj){ list <Account> inAcc = new list<Account>(); for (sObject lo : listObj){ Unprocessed_Agreement__c temp = (Unprocessed_Agreement__c)lo; inAcc.add(processor.processAccountRecord(temp)); } insert(inAcc); // This line throws the error }
the processor class looks something like this
global class CreateAndModifyProcessor { global Account processAccountRecord( Unprocessed_Agreement__c temp){ Account tempAcc = new Account(); tempAcc.Begining__c = temp.Begining__c; tempAcc.Agreement_ID__c = temp.Agreement_ID__c; return tempAcc; } }
First error: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Name]: [Name]
Hi,
just change this code to
let me know if you still face issues.
All Answers
Hi,
just change this code to
let me know if you still face issues.
Thanks Shashikant !
Your welcome salmanmanakia .