[rt-users] rt-crontool error

Kevin Falcone falcone at bestpractical.com
Tue Nov 11 14:13:27 EST 2014


On Mon, Nov 10, 2014 at 12:39:14AM -0500, support at pureview.com wrote:
> I'm running this crontool line:
> rt-crontool --search RT::Search::FromSQL --search-arg "Queue = 'general'
> AND Owner != 'Nobody' AND (  Status = 'open' OR Status = 'new' ) AND
> Created < '1 day ago'" --action RT::Action::SendEmail --action-arg
> Owner,AlwaysNotifyActor --template 'Reminder due soon' --transaction first
> 
> Once is ran. rt log is showing this errors:
> [19375] [Mon Nov  3 06:01:53 2014] [error]: Template parsing error: Can't
> call method "TargetObj" on an undefined value at template line 1.
> (/opt/rt4/bin/../lib/RT/Template.pm:546)

Your error log points the finger at your template, which I don't think
you included, so it's hard to comment.

I'd guess you're calling the TargetObj on an undefined object in the
first line of it though.

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 221 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20141111/d304b99c/attachment.sig>


More information about the rt-users mailing list