<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16430"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Segoe UI">
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I have the exact same problem with a very simple test-only scrip:</DIV>
<DIV> </DIV>
<DIV>Condition:  on a transaction</DIV>
<DIV>Action: user defined</DIV>
<DIV>Stage: TransactionBatch</DIV>
<DIV> </DIV>
<DIV>Action code:</DIV>
<DIV>$RT::Logger->info($self->TransactionObj->Id);</DIV>
<DIV> </DIV>
<DIV>Every transaction generated fires twice this scrip. If I chage the stage to TransactionCreate, then it works.</DIV>
<DIV> </DIV>
<DIV>Logfile:</DIV>
<DIV>[Thu Sep 29 19:12:47 2011] [info]: 323732 ((eval 1558):1)<BR>[Thu Sep 29 19:12:47 2011] [info]: 323732 ((eval 1566):1)<BR>[Thu Sep 29 19:12:55 2011] [info]: 323733 ((eval 1582):1)<BR>[Thu Sep 29 19:12:55 2011] [info]: 323733 ((eval 1590):1)<BR></DIV>
<DIV>Thank you.</DIV>
<DIV>Daniel Silveira</DIV>
<DIV><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><PRE style="WHITE-SPACE: pre-wrap">On Thu, Sep 29, 2011 at 11:10:20AM -0400, Xin, Qiao wrote:
><I> Hi,
</I>><I> 
</I>><I> I have a scrip to to check when the ticket status changes. If I put it as TransactionBatch mode,
</I>><I> each time I change the ticket status, the scrip got fired twice and there will be dupllicated emails
</I>><I> sent out. I had to use TransactionBatch, since we want an email notification to be sent out when 
</I>><I> either
</I>><I> 1.  the user use reply and modify the ticket status
</I>><I> 2. modify the ticket status
</I>><I> 
</I>><I> TransactionBatch works fine when user reply and modify ticket status but got duplicated emails when
</I>><I> just change ticket status.
</I>
Please show your scrip configuration

-kevin</PRE></SPAN></DIV></BODY></HTML>