I know this post is a bit old, but I'm having the same problem where a print task started in E-PDM fails after a number of drawings.
Does anyone know why this happens and how to solve it?
Windows 7 64bit
Hi Eric / Gu.
Some thoughts on this (my 2c):
Please refer to the error log (in the EPDM administration tool) for more details to see if anything is logged there.
Please run this task as an administrator on the EPDM system and see if it still fails. If it does, it might have to do with workflow permissions (check that the user running the task can indeed add files to the vault using this task, in the specified state) (eric I'm not sure what user you're running this as)
Also, the macro could be failing because the machine on which it is supposed to run might not have an activated license of solidworks installed. If it does have solidworks on the destination machine, make sure that the output details are correct.
Ask your VAR for help with the following (they might hate me for this lol) as a final check: open the print task. Go to files, click advanced scripting options (stay with me here, we're not going to edit anything) copy and paste whatever you see there inside a new macro inside solidworks, then run it by modifying the applicable parameters. This will give you good control over the output process and help you to see exactly where the macro fails. This entire process is essentially a macro which is run inside of SW, which opens a file (given a path from EPDM), then prints the file to a default / designated printer
Post your results here for the rest to see / troubleshoot
I've contacted my VAR already.
Part of the problem is that the fail happens after it's already printed several drawings, then just stops.
So the license is ok, the macro and workflow permissions must also be ok. I'm running as a CAD editor, on my own workstation.
I'll see if I can find more about the macro.
Hi Eric /Andries
The SPR is still not fixed.
Hi Gu Chao. the SPR above refers to the fact that the filename / path contains non english / unicode chars. Is this true in your case?
Also -> If the print task fails after a certain number of files, does that then mean that it works with a smaller number of files?
Are you on 2011 / 2012? I'm a developer in my spare time
In my experience (I stand corrected), it is possible for a task to fail if the intent of the macro is to print 1 file at a time and not multiple files. It could be that the way in which it loads the files (and then does not unload), it simply overloads the target system.
Therefore the question: are you on 2011 / 2012.
Unfortunately 'unspecified error' can really mean anything..! So then the question would be, is this the exact error you're getting?
In my case there are no strange characters.
I've now tried the exact same print action on my colleague's workstation, that runs on XP64 (mine W7 64), both same SW2011 and EPDM. His did not fail, just printed everything.
Error message: Failed to run SolidWorks macro.
Error code: E_FAIL, 'An unspecified error occurred.'
Part of the problem is that it fails without producing an error log, so it is difficult to trace.
Yes,This is true in my case. Please see SR 1-1367918721
The problem is still,on 2011 / 2012.