Have a look in the code behind the node my guess is that the document is chosen inside a python script in there, this need to be e.g. the linked document instead
Have a look in the code behind the node my guess is that the document is chosen inside a python script in there, this need to be e.g. the linked document instead