[rt-users] Skipping Scrip #X because it didn't Prepare

Jim Brandt jbrandt at bestpractical.com
Fri Aug 12 14:10:44 EDT 2016


Do you have anything in the "Custom action preparation code:" box? If 
not, try adding:

return 1;

so the Prepare step returns successfully.

On 8/12/16 1:50 PM, Cena, Stephen (ext. 300) wrote:
> I have two RT systems: one testing and one production. I have a modified
> notification Scrip on my test box:
> ----------------------------------------
> Description: On Correspond Reopen Rejected/Resolved Tickets
> Condition: On Correspond
> Action: User Defined
> Template: Blank
> Custom cond:
> If ($self->TicketObj->Status eq ‘rejected’) { return 1; }
> If ($self->TicketObj->Status eq ‘resolved’) { return 1; }
> Return 0;
>
> Custom action commit code:
> $self->TicketObj->SetStatus(“open”);
> ----------------------------------------
> On my test system it works perfectly. Any tickets resolved or rejected
> get re-opened on correspond. On my production box, I get the following
> in ym log:
>
> [13641] [Fri Aug 12 17:43:44 2016] [debug]: Skipping Scrip #32 because
> it didn't Prepare (/opt/rt4/sbin/../lib/RT/Scrips.pm:345)
>
> I’ve tried writing my own messages to the log but it doesn’t look like
> the scrip is firing. What is happening?
>
> *Stephen Cena*
> Senior Systems Administrator
> Quality Vision International, Inc.
> Phone: (585) 544-0450 x300
> To notify helpdesk: http://helpdesk.ogp.qvii.com or email:
> _hd-general at qvii.com_ <mailto:hd-general at qvii.com>
> To report email issues: postmaster at qvii.com
>
>
>
>
>
> ---------
> RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
> * Los Angeles - September, 2016
>



More information about the rt-users mailing list