The CreatorCon Call for Content is officially open! Get started here.

getEventTarget() (solved!)

nestor1
Kilo Contributor

Hello there,

I'm having this issue with "getEventTarget()", the instance where I'm working on has the domain support plug-in installed, everytime that I create a new Incident, the assigned event is fired, after that I check the log, and I find this:





WarninggetEventTarget() called with invalid record reference: incident.6b96ec770a0aa00e0118d925e27f5145 for event: user.view, could have been deleted
WarninggetEventTarget() called with invalid record reference: incident.6b96ec770a0aa00e0118d925e27f5145 for event: incident.assigned.to.group, could have been deleted
WarninggetEventTarget() called with invalid record reference: incident.6b96ec770a0aa00e0118d925e27f5145 for event: incident.severity.1, could have been deleted
WarninggetEventTarget() called with invalid record reference: incident.6b96ec770a0aa00e0118d925e27f5145 for event: incident.inserted, could have been deleted
WarninggetEventTarget() called with invalid record reference: incident.6b96ec770a0aa00e0118d925e27f5145 for event: metric.update, could have been deleted
WarninggetEventTarget() called with invalid record reference: incident.6b96ec770a0aa00e0118d925e27f5145 for event: text_index, could have been deleted

The notifications linked to those events won't get fired, I hope any of you has encountered this before, thanks!

8 REPLIES 8

nestor1
Kilo Contributor

Sorry, did not check this post for long time, just to make sure, you already managed to solve your issue? anyway, since there is no much people sharing "domain" info on the forums, why not try to keep in touch to share some feedback?

N.


IanFHawkins1
Kilo Explorer

I am also noticing this issue, but we are not using domain separation.


ashwin_shenoy
Kilo Explorer

Hi Nestor,



I am experiencing this issue for a custom table and the record are being deleted without any reason.



I looked at the log and saw this


worker.0 WARNING *** WARNING *** EventRecord: getEventTarget() called with invalid record reference: u_pap_owner.cbc441eeb90299483931b8cec612ef7b for event: user.view, could have been deleted




something similar to the log message which you got resolved.




The system we are using is not domain separated and there is no user called 'System'.


Could you please provide me more details as how you got his issue resolved.




Any suggestion is most welcome.




Regards,




Ashwin




hadyndickson
Mega Expert

I found this when deleting a bunch of records form my custom table which extends task table. The issue for me is an OOB Business Rule on the task table for metric events. It is used to trigger the metric.update event when a task record changes. This business rule is run on before delete. Therefore if you delete a record it will queue the metric.update event with the target being your record. When the event is finally executed I assume it tries to get the originating task record but because it has now been deleted you end up with this error.