Hi,
It is not the exit code that is stored in the field, it is whatever is printed
to STDOUT by the process you call.
If you do the PERFORM-ACTION-ADD-ATTACHMENT in an ACTL, you will definitely
fail, as your file seems to be stored on the server.
This should work for you:
FLTR:
Action 1: Set-Fields: CURRENT TRANS:
tmpchar1 = $PROCESS$ create file "D:\$PerNumb$.pdf"
Action 2: Set-Fields: CURRENT TRANS:
tmpchar2 = $PROCESS$ PERFORM-ACTION-ADD-ATTACHMENT 617001300
"D:\$PerNumb$.pdf"
Best Regards - Misi, RRR AB, http://www.rrr.se (ARSList MVP 2011)
Ask the Remedy Licensing Experts (Best R.O.I. Award at WWRUG10/11/12/13):
* RRR|License - Not enough Remedy licenses? Save money by optimizing.
* RRR|Log - Performance issues or elusive bugs? Analyze your Remedy logs.
Find these products, and many free tools and utilities, at http://rrr.se.
> Joel -
>
> I appreciate that you are using all available avenues to pursue this problem.
> Has this problem been escalated within BMC?
>
> Thanks,
>
> Scott Hamilton
>
> Project Manager
> Information Technology Department
> City of Cambridge, MA
> 617-349-7718
>
>
> -----Original Message-----
> From: Joel Sender [mailto:[email protected]]
> Sent: Saturday, July 05, 2014 10:15 PM
> To: [email protected]
> Subject: PERFORM-ACTION-ADD-ATTACHMENT fails
>
> 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"