Account
I am a
Developer
Product(s)
Earned badges
Achievement: Latest Unlocked
Preferences
Replies
Topics Started
Topic Started
This user has not created any forum posts.
Replies Created
Reply to: Post package signing
Wednesday, April 3, 2019 at 08:10amHi Duo,
For the scenario I basically added one condition to my existing package building code. I had previous code which was
SignatureBuilder signatureBuilder = null;
signatureBuilder = SignatureBuilder.SignatureFor(signer.Email);
signatureBuilder.OnPage(page)
.AtPosition(left, top)
.WithSize(width, height);
After this I added the following 3 lines
if (signer.SignerIndex == MaxSigners)
{
signatureBuilder.WithField(FieldBuilder.SignerName().WithSize(0,0).AtPosition(left,top));
}
Here MaxSigners = 4 when my agent has to sign and his SignerIndex = 4 always.
However, I get the following error
Silanis.ESL.SDK.EslServerException: Could not send the package. Exception: The remote server returned an error: (400) Bad Request. HTTP POST on URI https://sandbox.e-signlive.com/api/packages/03xI-6vP277elJk4h2kfiXwzuhs=. Optional details: {"messageKey":"error.validation.sendPackage.noApprovals","code":400,"message":"Cannot send package without approvals.","name":"Validation Error"} ---> Silanis.ESL.SDK.EslServerException: The remote server returned an error: (400) Bad Request. HTTP POST on URI https://sandbox.e-signlive.com/api/packages/03xI-6vP277elJk4h2kfiXwzuhs=. Optional details: {"messageKey":"error.validation.sendPackage.noApprovals","code":400,"message":"Cannot send package without approvals.","name":"Validation Error"} ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
Is there something wrong with this -- signatureBuilder.WithField(FieldBuilder.SignerName().WithSize(0,0).AtPosition(left,top));
Thanks
Reply to: Post package signing
Wednesday, April 3, 2019 at 01:11pmThans Duo. You are right. I removed the code and put it back and get the same error so it must be something to do elsewhere and the only change is in the template to add more signers all of which fields are denoted as stamp elements. This is the package reference https://sandbox.e-signlive.com/api/packages/HEf62WmY_KyrZs0BARemrHyjC0M=. How can I get more insight into what the problem might be?
Reply to: Post package signing
Wednesday, April 3, 2019 at 01:36pmThanks Duo. For this package there were two signers SIGNER28600874 and SIGNER0. SIGNER0 is the agent sih=gner. I am sending you the code.
Subscriptions
This user is not subscribed to any release notes.
Subscriptions Release Notes
This user is not subscribed to any release notes.