Error message -
file:///X:/avoka/transact/manager/work/phantomjs/delivery/82155-2381732/form.html:9605] SyntaxError:Unexpected token '}'
How can i debug in this scenario?
when I open the PDF after the job is processed I could see this error in the first line of the PDF.
Have you tried opening the form.html file in chrome. You may get more information on the error.
It is also worth looking at the console when loading the form in a browser as the error might be there also even though the form appears to work fine.
To be honest I am a novice, so please excuse me if the below is a dumb question.
could you please guide me how to get the form.html. The folder "...delivery" was empty when i have opened it.
Sometimes the form.html file would be left there after an error on older TM versions but now it usually gets cleaned up so you can ignore that advice.
The best place to start looking is when you load the form in a browser to fill it out. Often errors can show there but not actually break anything. Sometimes if the code only runs on the receipt you may not see an error when you load the form. In that case it might be useful to look for any script rules that only run on receipt render.
Another thing to try is to render a receipt in TM using the Render Receipt Test harness. If you render your receipt there as html you may be able to see the error in the developer tools console.
Thanks a loooot Matt for your prompt reply. Will try the options which you suggested.