I do something similar in a single filter (I'm on Unix but the same Idea
applies).
(NOTE: No `! needed as all work is done in set fields)
Here is the workflow I use.
Set Fields Action:
From Server : CURRENT TRANSACTION
From Form : CURRENT TRANSACTION
Set To Fields :
$zTempAttachmentFileName$ = $PROCESS$ "MakeAttachment.sh" $SERVER$
"$zTempFormName$" $Ticket ID$
Set Fields Action:
From Server : CURRENT TRANSACTION
From Form : CURRENT TRANSACTION
Set To Fields :
$zTemp WorkFlow txt1$ = $PROCESS$ PERFORM-ACTION-ADD-ATTACHMENT
536870924 “$zTempAttachmentFileName$”
Run Process Action:
Command Line : rm -f $zTempAttachmentFileName$
I think the basic differences are I have never used an attachment pool, I
always use an attachment field
Fred
-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[email protected]] On Behalf Of Hamilton, Scott
Sent: Monday, July 07, 2014 8:11 AM
To: [email protected]
Subject: Re: PERFORM-ACTION-ADD-ATTACHMENT fails
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
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"