I created the attached script to create a PDF and send an eamil a couple of years ago (FM13)
Generally it works fine - just occasionally it doesn't create the PDF and I get a screen like:
Which has a correctly named file - but not a PDF (and missing the PDF extension).
Now with version 14 it comes up with an Unknown Error: -1. - When I check with the script debugger it get stuck on the Send Mail.
What am I doing wrong???? Any help appreciated it is a solution I use all the time.....