gyurko

Getting a new Error: No Role found for signer email

0 votes
I was generating Packages without a problem using my Code but now I am returning the following error when trying to send a new Package. What am I missing? DocumentPackage Package = PackageBuilder.NewPackageNamed(PreOrderNumber + "_" + DateTime.Today.ToString("yyyyMMdd")) .WithSenderInfo(SenderInfoBuilder.NewSenderInfo(ltfEmail)) .DescribedAs(SOF) .ExpiresOn(ExpirationDate) .WithSigner(SignerBuilder.NewSignerWithEmail(GetEmail) .WithCustomId(PreOrderId.ToString()) .WithFirstName(GetFirstName) .WithLastName(GetLastName) .WithTitle("Signer") .SigningOrder(0)) .WithDocument(DocumentBuilder.NewDocumentNamed("Disclosures and Signatures Consent") .AtIndex(1) .FromFile("C:\\Disclosures & Consent.pdf") .WithSignature(SignatureBuilder.AcceptanceFor(GetEmail))) .WithSigner(SignerBuilder.NewSignerWithEmail(ltfEmail) .WithCustomId(PreOrderId.ToString()) .WithFirstName(ltfFirstName) .WithLastName(ltfLastName) .WithTitle("Signer") .SigningOrder(1)) .WithDocument(DocumentBuilder.NewDocumentNamed(SOF) .WithId(PreOrderId.ToString()) .FromStream(ms, DocumentType.PDF) .WithSignature(SignatureBuilder.SignatureFor(GetEmail) .WithPositionAnchor(TextAnchorBuilder.NewTextAnchor("Signature") .AtPosition(TextAnchorPosition.TOPRIGHT) .WithSize(180, 17) .WithOffset(50, -3) .WithCharacter(0) .WithOccurrence(0)) .WithField(FieldBuilder.SignatureDate() .WithPositionAnchor(TextAnchorBuilder.NewTextAnchor("Signature") .AtPosition(TextAnchorPosition.TOPRIGHT) .WithSize(180, 20) .WithCharacter(0) .WithOffset(50, 40) .WithOccurrence(0))) .WithField(FieldBuilder.TextField() .WithPositionAnchor(TextAnchorBuilder.NewTextAnchor("Name/Title") .AtPosition(TextAnchorPosition.TOPRIGHT) .WithSize(180, 17) .WithOffset(53, 0) .WithCharacter(0) .WithOccurrence(0)) ) ) .WithSignature(SignatureBuilder.SignatureFor(ltfEmail) .WithPositionAnchor(TextAnchorBuilder.NewTextAnchor("Signature") .AtPosition(TextAnchorPosition.TOPRIGHT) .WithSize(180, 17) .WithOffset(285, -3) .WithCharacter(0) .WithOccurrence(1)) .WithField(FieldBuilder.SignatureDate() .WithPositionAnchor(TextAnchorBuilder.NewTextAnchor("Signature") .AtPosition(TextAnchorPosition.TOPRIGHT) .WithSize(180, 20) .WithCharacter(0) .WithOffset(285, 40) .WithOccurrence(1))) .WithField(FieldBuilder.TextField() .WithPositionAnchor(TextAnchorBuilder.NewTextAnchor("Name/Title") .AtPosition(TextAnchorPosition.TOPRIGHT) .WithSize(180, 17) .WithOffset(53, 0) .WithCharacter(0) .WithOccurrence(1)) ) ) ) .Build();

Reply to: Getting a new Error: No Role found for signer email

0 votes
Hi there, You are getting this error because you are giving both your signers the same custom id, which is not allowed. You will need to assign different custom ids for each signer. Regards,
Haris Haidary OneSpan Technical Consultant

Reply to: Getting a new Error: No Role found for signer email

0 votes
I answered my own question, however I am not sure when the API changed to make this required. DocumentPackage Package = PackageBuilder.NewPackageNamed(PreOrderNumber + “_” + DateTime.Today.ToString(“yyyyMMdd”)) .WithSenderInfo(SenderInfoBuilder.NewSenderInfo(ltfEmail)) .DescribedAs(SOF) .ExpiresOn(ExpirationDate) .WithSigner(SignerBuilder.NewSignerWithEmail(GetEmail) .WithCustomId(PreOrderId.ToString()) .WithFirstName(GetFirstName) .WithLastName(GetLastName) .WithTitle(“Signer”) .WithCustomId("Signer")

Reply to: Getting a new Error: No Role found for signer email

0 votes
Which one? Setting a custom id or each signer having different custom ids? In any case, a custom id is not required when adding signers to a package. If you don't set one, the esignlive application will auto-generate one for you. In addition, each signer must have different ids within the same package. This is how it has always worked in esignlive.
Haris Haidary OneSpan Technical Consultant

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off