I am having trouble with a number of PDF conversion scripts that are reported to fail, however the output files are created correctly.
I have reduced the script I am having trouble with to the following:
' Convert Task VB Script
' Created by Richard Seegmiller, modeled after SW default Advanced Script
' To diagnose why Advanced Scripts are failing though they exit clean
' Created: 25 September 2013
On Error GoTo Fail:
docFileName = "<Filepath>"
After stepping through the debugger, the above script completes successfully. According to the results in the Task List, the task failed. There is no error log generated. The email that is sent also does not give any clues as to why the task failed. Sanitized email as follows:
SolidWorks Enterprise PDM notification
System was unable to auto create the MS Word Specification PDF.
The task was initiated by JDoe on JOHNPC running as Admin
File Name Version View Get Version Properties History Folder