Skip to Content
0
Former Member
Sep 25, 2011 at 09:25 PM

Error while adding approver

13 Views

Hi Sourcing Experts,

I am getting the following error while trying to add the approver through the below code .

log.setLogMessage("------------------ Approver Found------------------");
		Logger.info(log);
		addApprover(ext_legalgroup.getObjectReference(), new CollaboratorApprovalRuleType(0));

Error:

Exception: com.frictionless.api.common.exception.ApplicationException: Restricted To User is set to true on the Collaborator Role Object, so it can only be used with a user principal.Stack Trace: AssociatedAttribute.

Stack Trace: AssociatedAttribute=COLLABORATORS - SourceBo=1577058305:1004:ZMR_DCD_01 - ValidatingParent=1577058305:1004:ZMR_DCD_01 - com.frictionless.api.common.exception.ApplicationException: At least one of the items above is invalid. Mouse over the highlighted area for more details.

at com.frictionless.api.common.exception.ChainedExceptionFactory.createApplicationException(ChainedExceptionFactory.java:90)

at com.frictionless.common.db.PersistentBo.createApplicationException(PersistentBo.java:3160)

at com.frictionless.doc.collection.GeneralCollnBo.createApplicationException(GeneralCollnBo.java:324)

at com.frictionless.doc.collection.GeneralCollnBo.createApplicationException(GeneralCollnBo.java:336)

at com.frictionless.doc.collection.SubCollnBo.validateCollection(SubCollnBo.java:1264)

at com.frictionless.doc.ContainerBo.execValidate(ContainerBo.java:3737)

at com.frictionless.doc.BizDocBo.execValidate(BizDocBo.java:1965)

at com.frictionless.doc.ContainerBo.validate(ContainerBo.ja...

Thanks,

Ritik