Hi Joel, Phase 3 operations such as Run Process continue without waiting for previous operations to complete. Since there is no return code given when using run process it makes sense that although your pdf file is getting created, it is not getting created before the subsequent filter run process to attach it runs.
I would not use the after modify active link approach, since it leaves this open to be broken if the workflow is ever executed via web service or API calls in future. But, can you confirm you are using setfields using this kind of syntax (to indicate to run the process on the server side) $PROCESS$ @@:cmd /c "echo %PATH%" What I would recomment is that you need to keep it in filters, but use setfields '$PROCESS$ processToRun' (i.e. to generate the PDF) Filters using set fields wait for completion (i.e. a blocking operation) before running subsequent actions and filters. And then you can be sure it got generated before the PERFORM-ACTION-ADD-ATTACHMENT action is fired. Hope something here helps.. Regards, Randeep On Sat, Jul 5, 2014 at 10:15 PM, Joel Sender <[email protected]> wrote: > I have an ongoing case for this at BMC, but maybe the ARSlist can shed > some light... > > Using a development ARS 8.1.1 server on Windows Server with an MS/SQL > back-end. > Custom application, simple workflow: run a process to create a PDF file > and then attach it to a record in an ARS form. > > I execute a Run Process to create a PDF file "D:\$PerNumb$.pdf" where the > $PerNumb$ is correctly taken from the current record. > The file is definitely created correctly. > > I then attempt to add that file into an Attachment Pool in a filter > Run-Process action with this command: > PERFORM-ACTION-ADD-ATTACHMENT 617001300 "D:\$PerNumb$.pdf" > The field ID is for the Attachment Pool > That failed, too. > > I then tried several iterations of filters with and without the Tick-Bang > (`!), but no luck. > > I submitted a ticket to BMC when the 'Run Process' failed and they > suggested that I use a Set-Field action instead. > I tried the Set-Field in an Active Link that executed After-Modify - to > ensure that the file was created in a filter before attempting the > attachment. > Using an integer field to accept the Exit Code, I set the field to > $PROCESS$ PERFORM-ACTION-ADD-ATTACHMENT 617001300 "D:\$PerNumb$.pdf" > > Same error in ALL cases: > File pointer is NULL or invalid file pointer. (ARERR 295) > > Have I missed something basic? Has anyone gotten around this? > Thanks in advance, > Joel > Joel Sender [email protected] 310.829.5552 > > > --- > This email is free from viruses and malware because avast! Antivirus > protection is active. > http://www.avast.com > > > _______________________________________________________________________________ > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org > "Where the Answers Are, and have been for 20 years" > _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org "Where the Answers Are, and have been for 20 years"

