cancel
Showing results for 
Search instead for 
Did you mean: 

Error while adding approver

ritikbaral
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

ritikbaral
Explorer
0 Kudos

The issue is resolved, thanks a lot.

0 Kudos

Hi Ritik,

I would check the Approver Collaborator Role Definition and make sure Restrict to User checkbox is unchecked.

Collaborator Role Definition can be accessed from Setup --> Document Setup tab.

Regards,

Vikram