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!