List & Label Error 1012- while sending mail with PDF attachment

I’d start with creating a log file. The procedure is described here: