I am trying to create two documents from similar templates (the template use the same variable names).
The call replaceVariableByText fails in multiple places on the second document.
I have tried unset and = null before creating the second document. Neither change the behaviour.
There is nothing wrong with either template because whichever is creted first works fine it is always the replace in the second document that fails.
I can't find and reset or clear function and the only reference in the forums is to using unset (which doesn't work)
Any help apprceiated.