Skip to main content
Jan_Ae
Inspiring
January 16, 2019
Answered

Adding form fields to an agreement, returns "Resource is already modified with newer version"

  • January 16, 2019
  • 6 replies
  • 4367 views

Goal: add a formfield (a signature) to an agreement.

Steps:

     1. Create an agreement

     2. Use the id of that agreement to GET the agreement which returns the ETag in its headers

     3. Do a POST/PUT to agreements/{agreementId}/formfields with that ETag in the If-Match header

Result:

The error "Resource is already modified with newer version" is returned.

I get this using Postman and using my Java code. What am I doing wrong?

Kind regards

This topic has been closed for replies.
Correct answer Jan_Ae

Looking at the API request LOG, I noticed I was sending my Etag in a list (The Java Jersey client I use, gets the value of a header as a list) which gives this error.

Using an invalid ETag seems to result in thesame error as using an old one.

6 replies

February 24, 2020

I'm getting an error CANNOT_PROCESS_REQUEST when trying to PUT to agreements/{agreementId}/formfields.
I've tried the exact example from this post, as well as getting the members from /agreements/{agreementId}/members.

I'm able to update the form fields successfully when the agreement is in DRAFT state (rather than AUTHORING), but pulling the members data fails with the code AGREEMENT_IN_DRAFT_STATE, so the sent agreement doesn't have the fields displayed correctly.
Any insight would be really appreciated, as for now I'm stumped.

Participant
February 19, 2020

I'm also getting this error. I'm using Adobe JS SDK . I don't understand where is the problem. Also I've noticed a stange thing, I'm getting different Etags when I'm using SDK and Postman. But in any case, none works. How can this be?

Also in the SDK ifMatch is required, but in the Postman I can skip this header (ETag) and it works. Can you help me?

Participant
February 5, 2019

Hi Ja,

I found the solution:-)  You need to call get /agreements/{agreementId}/members

to get participantSets id for the agreementid and use that in the assignee field to get the signature placed using put formfields. This will do the linkage for which field is linked to which form signer.

Regards

Jan_Ae
Jan_AeAuthor
Inspiring
February 6, 2019

Alright, thanks!

Participant
February 3, 2019

I am also getting the same error when using adobe api directly from adobe website.  Can you please help on what steps to follow to get a formfield added through the adobe api online simulator. I am stuck and not able to progress due to this issue...

Thanks

Jan_Ae
Jan_AeAuthor
Inspiring
February 4, 2019

Hi Khalida

Here you can find the info concerning the ETags.

https://www.adobe.io/apis/documentcloud/sign/docs.html#!adobeio/adobeio-documentation/master/sign/api_usage/enhancements_v6.md

And here you can find the request log

https://secure.eu1.echosign.com/account/accountSettingsPage#pageId::API_LOG

Basically, you create an agreement, then get the agreement formfields which returns an ETag in the response headers and use that value in an If-match header when putting your formfields.

Good luck

Participant
February 4, 2019

Hi Ja,

Thanks for your help, I have passed that hurdle now, but now the signature field is not appearing in the designated position using formFields.  The automated signature field appears at the end of the page and not the one that I have placed.  I basically want to place 2-3 signature fields at specific locations in the document.

I am following the steps in the link below without avail, although I copied the exact commands...

FormFields option is not available in V6 of REST API | Adobe Sign

Regards

Jan_Ae
Jan_AeAuthorCorrect answer
Inspiring
January 23, 2019

Looking at the API request LOG, I noticed I was sending my Etag in a list (The Java Jersey client I use, gets the value of a header as a list) which gives this error.

Using an invalid ETag seems to result in thesame error as using an old one.

Meenakshi Negi
Community Manager
Community Manager
January 17, 2019

Hi Ja,

I have checked that you are using a Developer account of Adobe Sign.

As you have a query related to the API, I would request you to contact the Adobe Sign pre-sales team.

They will be able to provide pre-sales technical assistance to you.

Please refer this link Adobe Sign plans for individuals and businesses | Adobe Document Cloud to get in contact with them.

Let us know if you need any help.

Regards,

Meenakshi