[rt-users] Error when trying to use custom field in a ticket transaction in RT 3.6

Kenneth Crocker KFCrocker at lbl.gov
Tue Jun 10 16:11:10 EDT 2008


Allen,


	A couple questions; Have you looked at the DataBase to see if the 
Custom Fields are there as well as the values and are they attached to 
tickets? Second, have you created other Custom Fields that DO work or 
are these the first? If these are the first, did you set the groups 
rights for the CF when you created it? Group Rights for Custom Fields 
are granted separatly from Group rights for Queues.


Kenn
LBNL

On 6/9/2008 7:01 PM, Allen Rapini wrote:
> I have a test install of RT, and I am attempting to resolve a repeatable
> error with custom field behavior. System is running 3.6, on ubuntu
> 6.0.6, apache2, php5.1.2. Overall behaviour seems fine, but the custom
> field is my only real hangup so far
> 
> The custom field I have created is a type "select one value" with no
> validation, link values or include page values. There are 6 entries,
> with no sort order or category. This custom field applies to ticket
> transactions, which is assigned to all the queues. I then open an
> exisitng ticket in the jumbo view, and attempt to choose one of the
> entries in the list and save the ticket. I then get a system error, with
> the text below:
> "
> error:  Can't locate object method "Id" via package "No object mapping
> for field" (perhaps you forgot to load "No object mapping for field"?)
> at /usr/share/request-tracker3.6/lib/RT/Record.pm line 1538.
>  
> context:  ...   
> 1534:  my $method = "${class}Obj"; 
> 1535:  $object = $object->$method; 
> 1536:  } 
> 1537:   
> 1538:  return $object->Id; 
> 1539:  } 
> 1540:   
> 1541:   
> 1542:  =head2 CustomFieldLookupType  
> ...   
>  
> code stack:  /usr/share/request-tracker3.6/lib/RT/Record.pm:1538
> /usr/share/request-tracker3.6/lib/RT/Record.pm:1519
> /usr/share/request-tracker3.6/lib/RT/Record.pm:1597
> /usr/share/request-tracker3.6/lib/RT/Record.pm:1579
> /usr/share/request-tracker3.6/lib/RT/Interface/Web.pm:1300
> /usr/share/request-tracker3.6/html/Ticket/ModifyAll.html:163
> /usr/share/request-tracker3.6/html/autohandler:279 
> 
> 
> 
> "
> 
> raw error
> 
> 
> 
> Can't locate object method "Id" via package "No object mapping for
> field" (perhaps you forgot to load "No object mapping for field"?) at
> /usr/share/request-tracker3.6/lib/RT/Record.pm line 1538.
> 
> 
> Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
> HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object method
> "Id" via package "No object mapping for field" (perhaps you forgot to
> load "No object mapping for field"?) at
> /usr/share/request-tracker3.6/lib/RT/Record.pm line 1538.^J') called at
> /usr/share/request-tracker3.6/lib/RT/Record.pm line 1538
> RT::Record::_LookupId('RT::Transaction=HASH(0xa5a0160)',
> 'RT::Queue-RT::Ticket-RT::Transaction') called at
> /usr/share/request-tracker3.6/lib/RT/Record.pm line 1519
> RT::Record::CustomFields('RT::Transaction=HASH(0xa5a0160)') called at
> /usr/share/request-tracker3.6/lib/RT/Record.pm line 1597
> RT::Record::_AddCustomFieldValue('RT::Transaction=HASH(0xa5a0160)',
> 'Field', 1, 'Value', 'ttt Systems') called at
> /usr/share/request-tracker3.6/lib/RT/Record.pm line 1579
> RT::Record::AddCustomFieldValue('RT::Transaction=HASH(0xa5a0160)',
> 'Field', 1, 'Value', 'ttt Systems') called at
> /usr/share/request-tracker3.6/lib/RT/Interface/Web.pm line 1300
> HTML::Mason::Commands::ProcessObjectCustomFieldUpdates('Object',
> 'RT::Ticket=HASH(0xa6597c8)', 'ARGSRef', 'HASH(0xa5522c0)') called at
> /usr/share/request-tracker3.6/html/Ticket/ModifyAll.html line 163
> HTML::Mason::Commands::__ANON__('Starts_Date', '', 'TimeEstimated', 0,
> 'UserOp', 'LIKE', 'Status', '', 'UpdateAttachment', '', 'Started_Date',
> '', 'UpdateType', 'private', 'WatcherTypeEmail2', '', 'TimeWorked', 0,
> 'Object-RT::Transaction--CustomField-1-Values', 'ttt Systems', 'id', 12,
> 'TimeEstimated-TimeUnits', 'minutes', 'Subject', 'custom field test',
> 'RefersTo-12', '', 'WatcherTypeEmail3', '', 'GroupString', '',
> 'GroupOp', 'LIKE', 'Owner', 'ARRAY(0xa4b8f00)', 'WatcherTypeEmail1', '',
> 'Priority', 0, 'WatcherAddressEmail3', '',
> 'Object-RT::Transaction--CustomField-1-Values-Magic', 1, 'Queue', 3,
> 'Due_Date', '', 'WatcherAddressEmail1', '', 'Told_Date', '',
> 'UserString', '', 'UserField', 'Name', 'GroupField', 'Name',
> '12-MergeInto', '', 'UpdateSubject', 'custom field test',
> 'FinalPriority', 0, '12-DependsOn', '', '12-MemberOf', '',
> 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', 0, '12-RefersTo', '',
> 'MemberOf-12', '', 'UpdateContent', '', 'DependsOn-12', '',
> 'TimeWorked-TimeUnits', 'minutes', 'WatcherAddressEmail2', '',
> 'Starts_Date', '', 'TimeEstimated', 0, 'UserOp', 'LIKE', 'Status', '',
> 'UpdateAttachment', '', 'Started_Date', '', 'UpdateType', 'private',
> 'WatcherTypeEmail2', '', 'TimeWorked', 0,
> 'Object-RT::Transaction--CustomField-1-Values', 'ttt Systems', 'id', 12,
> 'TimeEstimated-TimeUnits', 'minutes', 'Subject', 'custom field test',
> 'RefersTo-12', '', 'WatcherTypeEmail3', '', 'GroupString', '',
> 'GroupOp', 'LIKE', 'Owner', 'ARRAY(0xa66217c)', 'WatcherTypeEmail1', '',
> 'Priority', 0, 'WatcherAddressEmail3', '',
> 'Object-RT::Transaction--CustomField-1-Values-Magic', 1, 'Queue', 3,
> 'Due_Date', '', 'WatcherAddressEmail1', '', 'Told_Date', '',
> 'UserString', '', 'UserField', 'Name', 'GroupField', 'Name',
> '12-MergeInto', '', 'UpdateSubject', 'custom field test',
> 'FinalPriority', 0, '12-DependsOn', '', '12-MemberOf', '',
> 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', 0, '12-RefersTo', '',
> 'MemberOf-12', '', 'UpdateContent', '', 'DependsOn-12', '',
> 'TimeWorked-TimeUnits', 'minutes', 'WatcherAddressEmail2', '') called at
> /usr/share/perl5/HTML/Mason/Component.pm line 135
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa5
> 522fc)', 'Starts_Date', '', 'TimeEstimated', 0, 'UserOp', 'LIKE',
> 'Status', '', 'UpdateAttachment', '', 'Started_Date', '', 'UpdateType',
> 'private', 'WatcherTypeEmail2', '', 'TimeWorked', 0,
> 'Object-RT::Transaction--CustomField-1-Values', 'ttt Systems', 'id', 12,
> 'TimeEstimated-TimeUnits', 'minutes', 'Subject', 'custom field test',
> 'RefersTo-12', '', 'WatcherTypeEmail3', '', 'GroupString', '',
> 'GroupOp', 'LIKE', 'Owner', 'ARRAY(0xa4b8f00)', 'WatcherTypeEmail1', '',
> 'Priority', 0, 'WatcherAddressEmail3', '',
> 'Object-RT::Transaction--CustomField-1-Values-Magic', 1, 'Queue', 3,
> 'Due_Date', '', 'WatcherAddressEmail1', '', 'Told_Date', '',
> 'UserString', '', 'UserField', 'Name', 'GroupField', 'Name',
> '12-MergeInto', '', 'UpdateSubject', 'custom field test',
> 'FinalPriority', 0, '12-DependsOn', '', '12-MemberOf', '',
> 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', 0, '12-RefersTo', '',
> 'MemberOf-12', '', 'UpdateContent', '', 'DependsOn-12', '',
> 'TimeWorked-TimeUnits', 'minutes', 'WatcherAddressEmail2', '',
> 'Starts_Date', '', 'TimeEstimated', 0, 'UserOp', 'LIKE', 'Status', '',
> 'UpdateAttachment', '', 'Started_Date', '', 'UpdateType', 'private',
> 'WatcherTypeEmail2', '', 'TimeWorked', 0,
> 'Object-RT::Transaction--CustomField-1-Values', 'ttt Systems', 'id', 12,
> 'TimeEstimated-TimeUnits', 'minutes', 'Subject', 'custom field test',
> 'RefersTo-12', '', 'WatcherTypeEmail3', '', 'GroupString', '',
> 'GroupOp', 'LIKE', 'Owner', 'ARRAY(0xa66217c)', 'WatcherTypeEmail1', '',
> 'Priority', 0, 'WatcherAddressEmail3', '',
> 'Object-RT::Transaction--CustomField-1-Values-Magic', 1, 'Queue', 3,
> 'Due_Date', '', 'WatcherAddressEmail1', '', 'Told_Date', '',
> 'UserString', '', 'UserField', 'Name', 'GroupField', 'Name',
> '12-MergeInto', '', 'UpdateSubject', 'custom field test',
> 'FinalPriority', 0, '12-DependsOn', '', '12-MemberOf', '',
> 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', 0, '12-RefersTo', '',
> 'MemberOf-12', '', 'UpdateContent', '', 'DependsOn-12', '',
> 'TimeWorked-TimeUnits', 'minutes', 'WatcherAddressEmail2', '') called at
> /usr/share/perl5/HTML/Mason/Request.pm line 1251
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1245
> HTML::Mason::Request::comp(undef, undef, 'Starts_Date', '',
> 'TimeEstimated', 0, 'UserOp', 'LIKE', 'Status', '', 'UpdateAttachment',
> '', 'Started_Date', '', 'UpdateType', 'private', 'WatcherTypeEmail2',
> '', 'TimeWorked', 0, 'Object-RT::Transaction--CustomField-1-Values',
> 'ttt Systems', 'id', 12, 'TimeEstimated-TimeUnits', 'minutes',
> 'Subject', 'custom field test', 'RefersTo-12', '', 'WatcherTypeEmail3',
> '', 'GroupString', '', 'GroupOp', 'LIKE', 'Owner', 'ARRAY(0xa4b8f00)',
> 'WatcherTypeEmail1', '', 'Priority', 0, 'WatcherAddressEmail3', '',
> 'Object-RT::Transaction--CustomField-1-Values-Magic', 1, 'Queue', 3,
> 'Due_Date', '', 'WatcherAddressEmail1', '', 'Told_Date', '',
> 'UserString', '', 'UserField', 'Name', 'GroupField', 'Name',
> '12-MergeInto', '', 'UpdateSubject', 'custom field test',
> 'FinalPriority', 0, '12-DependsOn', '', '12-MemberOf', '',
> 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', 0, '12-RefersTo', '',
> 'MemberOf-12', '', 'UpdateContent', '', 'DependsOn-12', '',
> 'TimeWorked-TimeUnits', 'minutes', 'WatcherAddressEmail2', '',
> 'Starts_Date', '', 'TimeEstimated', 0, 'UserOp', 'LIKE', 'Status', '',
> 'UpdateAttachment', '', 'Started_Date', '', 'UpdateType', 'private',
> 'WatcherTypeEmail2', '', 'TimeWorked', 0,
> 'Object-RT::Transaction--CustomField-1-Values', 'ttt Systems', 'id', 12,
> 'TimeEstimated-TimeUnits', 'minutes', 'Subject', 'custom field test',
> 'RefersTo-12', '', 'WatcherTypeEmail3', '', 'GroupString', '',
> 'GroupOp', 'LIKE', 'Owner', 'ARRAY(0xa66217c)', 'WatcherTypeEmail1', '',
> 'Priority', 0, 'WatcherAddressEmail3', '',
> 'Object-RT::Transaction--CustomField-1-Values-Magic', 1, 'Queue', 3,
> 'Due_Date', '', 'WatcherAddressEmail1', '', 'Told_Date', '',
> 'UserString', '', 'UserField', 'Name', 'GroupField', 'Name',
> '12-MergeInto', '', 'UpdateSubject', 'custom field test',
> 'FinalPriority', 0, '12-DependsOn', '', '12-MemberOf', '',
> 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', 0, '12-RefersTo', '',
> 'MemberOf-12', '', 'UpdateContent', '', 'DependsOn-12', '',
> 'TimeWorked-TimeUnits', 'minutes', 'WatcherAddressEmail2', '') called at
> /usr/share/perl5/HTML/Mason/Request.pm line 914
> HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HAS
> H(0xa664390)', 'Starts_Date', '', 'TimeEstimated', 0, 'UserOp', 'LIKE',
> 'Status', '', 'UpdateAttachment', '', 'Started_Date', '', 'UpdateType',
> 'private', 'WatcherTypeEmail2', '', 'TimeWorked', 0,
> 'Object-RT::Transaction--CustomField-1-Values', 'ttt Systems', 'id', 12,
> 'TimeEstimated-TimeUnits', 'minutes', 'Subject', 'custom field test',
> 'RefersTo-12', '', 'WatcherTypeEmail3', '', 'GroupString', '',
> 'GroupOp', 'LIKE', 'Owner', 'ARRAY(0xa66217c)', 'WatcherTypeEmail1', '',
> 'Priority', 0, 'WatcherAddressEmail3', '',
> 'Object-RT::Transaction--CustomField-1-Values-Magic', 1, 'Queue', 3,
> 'Due_Date', '', 'WatcherAddressEmail1', '', 'Told_Date', '',
> 'UserString', '', 'UserField', 'Name', 'GroupField', 'Name',
> '12-MergeInto', '', 'UpdateSubject', 'custom field test',
> 'FinalPriority', 0, '12-DependsOn', '', '12-MemberOf', '',
> 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', 0, '12-RefersTo', '',
> 'MemberOf-12', '', 'UpdateContent', '', 'DependsOn-12', '',
> 'TimeWorked-TimeUnits', 'minutes', 'WatcherAddressEmail2', '') called at
> /usr/share/request-tracker3.6/html/autohandler line 279
> HTML::Mason::Commands::__ANON__('Starts_Date', '', 'TimeEstimated', 0,
> 'UserOp', 'LIKE', 'Status', '', 'UpdateAttachment', '', 'Started_Date',
> '', 'UpdateType', 'private', 'WatcherTypeEmail2', '', 'TimeWorked', 0,
> 'Object-RT::Transaction--CustomField-1-Values', 'ttt Systems', 'id', 12,
> 'TimeEstimated-TimeUnits', 'minutes', 'Subject', 'custom field test',
> 'RefersTo-12', '', 'WatcherTypeEmail3', '', 'GroupString', '',
> 'GroupOp', 'LIKE', 'Owner', 'ARRAY(0xa4b8f00)', 'WatcherTypeEmail1', '',
> 'Priority', 0, 'WatcherAddressEmail3', '',
> 'Object-RT::Transaction--CustomField-1-Values-Magic', 1, 'Queue', 3,
> 'Due_Date', '', 'WatcherAddressEmail1', '', 'Told_Date', '',
> 'UserString', '', 'UserField', 'Name', 'GroupField', 'Name',
> '12-MergeInto', '', 'UpdateSubject', 'custom field test',
> 'FinalPriority', 0, '12-DependsOn', '', '12-MemberOf', '',
> 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', 0, '12-RefersTo', '',
> 'MemberOf-12', '', 'UpdateContent', '', 'DependsOn-12', '',
> 'TimeWorked-TimeUnits', 'minutes', 'WatcherAddressEmail2', '') called at
> /usr/share/perl5/HTML/Mason/Component.pm line 135
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9e
> caec4)', 'Starts_Date', '', 'TimeEstimated', 0, 'UserOp', 'LIKE',
> 'Status', '', 'UpdateAttachment', '', 'Started_Date', '', 'UpdateType',
> 'private', 'WatcherTypeEmail2', '', 'TimeWorked', 0,
> 'Object-RT::Transaction--CustomField-1-Values', 'ttt Systems', 'id', 12,
> 'TimeEstimated-TimeUnits', 'minutes', 'Subject', 'custom field test',
> 'RefersTo-12', '', 'WatcherTypeEmail3', '', 'GroupString', '',
> 'GroupOp', 'LIKE', 'Owner', 'ARRAY(0xa4b8f00)', 'WatcherTypeEmail1', '',
> 'Priority', 0, 'WatcherAddressEmail3', '',
> 'Object-RT::Transaction--CustomField-1-Values-Magic', 1, 'Queue', 3,
> 'Due_Date', '', 'WatcherAddressEmail1', '', 'Told_Date', '',
> 'UserString', '', 'UserField', 'Name', 'GroupField', 'Name',
> '12-MergeInto', '', 'UpdateSubject', 'custom field test',
> 'FinalPriority', 0, '12-DependsOn', '', '12-MemberOf', '',
> 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', 0, '12-RefersTo', '',
> 'MemberOf-12', '', 'UpdateContent', '', 'DependsOn-12', '',
> 'TimeWorked-TimeUnits', 'minutes', 'WatcherAddressEmail2', '') called at
> /usr/share/perl5/HTML/Mason/Request.pm line 1246
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1245
> HTML::Mason::Request::comp(undef, undef, undef, 'Starts_Date', '',
> 'TimeEstimated', 0, 'UserOp', 'LIKE', 'Status', '', 'UpdateAttachment',
> '', 'Started_Date', '', 'UpdateType', 'private', 'WatcherTypeEmail2',
> '', 'TimeWorked', 0, 'Object-RT::Transaction--CustomField-1-Values',
> 'ttt Systems', 'id', 12, 'TimeEstimated-TimeUnits', 'minutes',
> 'Subject', 'custom field test', 'RefersTo-12', '', 'WatcherTypeEmail3',
> '', 'GroupString', '', 'GroupOp', 'LIKE', 'Owner', 'ARRAY(0xa4b8f00)',
> 'WatcherTypeEmail1', '', 'Priority', 0, 'WatcherAddressEmail3', '',
> 'Object-RT::Transaction--CustomField-1-Values-Magic', 1, 'Queue', 3,
> 'Due_Date', '', 'WatcherAddressEmail1', '', 'Told_Date', '',
> 'UserString', '', 'UserField', 'Name', 'GroupField', 'Name',
> '12-MergeInto', '', 'UpdateSubject', 'custom field test',
> 'FinalPriority', 0, '12-DependsOn', '', '12-MemberOf', '',
> 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', 0, '12-RefersTo', '',
> 'MemberOf-12', '', 'UpdateContent', '', 'DependsOn-12', '',
> 'TimeWorked-TimeUnits', 'minutes', 'WatcherAddressEmail2', '') called at
> /usr/share/perl5/HTML/Mason/Request.pm line 459
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 459
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 411
> HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xa
> 664390)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line
> 165
> HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheH
> andler=HASH(0xa664390)') called at
> /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 832
> HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=H
> ASH(0x96ba2c0)', 'Apache2::RequestRec=SCALAR(0xa618984)') called at
> /usr/share/request-tracker3.6/libexec/webmux.pl line 123
> eval {...} at /usr/share/request-tracker3.6/libexec/webmux.pl line 123
> RT::Mason::handler('Apache2::RequestRec=SCALAR(0xa618984)') called at -e
> line 0
> eval {...} at -e line 0 	
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
> 
> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
> 




More information about the rt-users mailing list