Skip to Content
avatar image
Former Member

Error while adding approver

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 25, 2011 at 09:36 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 26, 2011 at 02:24 PM

    The issue is resolved, thanks a lot.

    Add comment
    10|10000 characters needed characters exceeded