You need to sign in to do that
Don't have an account?
Zabi Mohammed
First exception on row 0; first error: MANAGER_NOT_DEFINED, Manager undefined.: [] in test case for approval process
Hai,
i have a problem with approval process test case that is First exception on row 0; first error: MANAGER_NOT_DEFINED, Manager undefined.: []
please help me on this.
Thanks and Regards,
jabee
i have a problem with approval process test case that is First exception on row 0; first error: MANAGER_NOT_DEFINED, Manager undefined.: []
please help me on this.
Thanks and Regards,
jabee
in approval process next approver to the records is Manager
thanks,
zabi
That will resolve your issue
Please let us know if this will help u
this code is not working for my test class,
Approval.ProcessSubmitRequest req = new Approval.ProcessSubmitRequest();
req.setComments('Approve.');
req.setNextApproverIds(new Id[] {UserInfo.getUserId(),UserInfo.getUserId()});
req.setObjectId(objId);
Approval.ProcessResult result = Approval.process(req);
this is code i am using to cover the code using test class hear i am getting
System.DmlException: Process failed. First exception on row 0; first error: MANAGER_NOT_DEFINED, Manager undefined.: []
thanks,
zabi
This Error comes because of in Approval procress number of Assigned Approver we should enter all the names.
Example: we have number of approvars 4 and Number of assigned Approver 5 then we should enter all the assigned approver i.e 5.
then your issue cone solved.
Thanks,
Mohammed.