Skip to main content

Hi,

I’m trying to send an envelope with multiple documents and each document needs to be applied a specific template.

I’m looping through the documents and adding the specific serverTemplate based on the type of document.

Here’s a snippet:

The serverTemplate is determined by:

 

However, it seems that the other template is being applied also to the document that it’s not meant for.

Here’s the error:

HTTP response body: b'{"errorCode":"TAB_PAGENUMBER_IS_NOT_IN_DOCUMENT","message":"The pagenumber specified in the tab element is not in the document that the tab refers to. Tab on Page 9 of Document 1 for Recipient 1"}'

 

Any idea?

Thanks!

Dear User

 

Thank you for reaching out to DS. The error `"TAB_PAGENUMBER_IS_NOT_IN_DOCUMENT" indicates an issue where a tab is being placed on a page number that doesn't exist within the specified document. For example, the error message shows that the tab is set to appear on page 9 of document 1 for recipient 1. However, document 1 might not have a page 9, meaning the document either has fewer pages than expected or there was a mistake in specifying the page number.

 

Could you please raise a case with DS Support with API logs so we can reproduce the issue & help you further?

 

Thanks & Regards

Sai HariPriya Dandamudi | Senior Developer Support Engineer | DocuSign

A picture containing clipartDescription automatically generated


Hi @Sai.Dandamudi ,

 

I don’t have a paid plan so I cannot go to Docusign Support.

I assume that the issue is that the other template that is supposedly for Document 2 is also being applied to Document 1.

This is my request:

p
   {
      "compositeTemplateId":"1",
      "document":{
         "documentBase64":"sampleDocumentBase64Doc1",
         "documentId":"1",
         "fileExtension":"pdf",
         "name":"Client Agreement 2-2024 mapped - Copy"
      },
      "serverTemplates":
         {
            "sequence":"1",
            "templateId":"beee76a5-7041-4b3d-aab8-a54d865fc8b4"
         }
      ],
      "inlineTemplates":/
         {
            "recipients":{
               "signers":Â
                  {
                     "email":"kenmichaelsev@gmail.com",
                     "name":"Ken Sevilla",
                     "roleName":"Client",
                     "recipientId":"1",
                     "accessCode":"12345"
                  },
                  {
                     "email":"kenmichaelsev@gmail.com",
                     "name":"Ken Joint",
                     "roleName":"Client 2",
                     "recipientId":"2",
                     "accessCode":"12345"
                  },
                  {
                     "email":"Advisor@advisor.com",
                     "name":"Representative",
                     "roleName":"Representative",
                     "recipientId":"3"
                  },
                  {
                     "email":"esig@unitedplanners.com",
                     "name":"United Planners",
                     "roleName":"United Planners",
                     "recipientId":"4"
                  }
               ]
            },
            "sequence":"2"
         }
      ]
   },
   {
      "compositeTemplateId":"2",
      "document":{
         "documentBase64":"sampleDocumentBase64Doc2",
         "documentId":"2",
         "fileExtension":"pdf",
         "name":"IMSA"
      },
      "serverTemplates":<
         {
            "sequence":"1",
            "templateId":"178a3e4a-88ab-4a47-898e-9300ce82edfe"
         }
      ],
      "inlineTemplates":Â
         {
            "recipients":{
               "signers":b
                  {
                     "email":"kenmichaelsev@gmail.com",
                     "name":"Ken Sevilla",
                     "roleName":"Client",
                     "recipientId":"1",
                     "accessCode":"12345"
                  },
                  {
                     "email":"kenmichaelsev@gmail.com",
                     "name":"Ken Joint",
                     "roleName":"Client 2",
                     "recipientId":"2",
                     "accessCode":"12345"
                  },
                  {
                     "email":"Advisor@advisor.com",
                     "name":"Representative",
                     "roleName":"Representative",
                     "recipientId":"3"
                  },
                  {
                     "email":"esig@unitedplanners.com",
                     "name":"United Planners",
                     "roleName":"United Planners",
                     "recipientId":"4"
                  }
               ]
            },
            "sequence":"2"
         }
      ]
   }
]


Reply