How to resolve getEventTarget() error?

Raju Koyagura
Tera Guru

Hi Everyone,

I have created a custom table, which extending from 'Task' table. When I try to insert a record in that new table, I am getting below error.

"getEventTarget() called with invalid record reference: XXXX.dccecf982bbd3100897d1c9069da15d0 for event: XXX, could have been deleted."

If I tried to create a record manually, then its showing "java.sql.BatchUpdateException: Duplicate entry".

I gone through this link 'getEventTarget() (solved!)' but I am not clear with the solution. Could you please anyone, help me in this.

Regards,

Raju.

14 REPLIES 14

will_leingang
ServiceNow Employee
ServiceNow Employee

Hi Raju, do you have that plugin enabled? I think your error might be unrelated to that problem.



What happens if you just try to insert a new record in task, do you see that error?



Have you tried enabling business rule debugging?


Debug Business rules.png



Then you can see the business rule that might be failing in the output below the record after save:



Screen Shot 2015-01-21 at 10.26.26 AM.png


davejr
Giga Contributor

I am also getting this when trying to create an Incident in a scheduled job.



getEventTarget() called with invalid record reference: incident.53f3f08937f3350081f494c543990e84 for event: metric.update, could have been deleted



although the logs say it is a warning, not an error,


my inc.insert is getting ignored.  



The scheduled job is calling a script include,


and I know the inc.insert is reached, but no Incident is created.


Hi David,



were you able to solve this error?



I am facing the similar.



Thank you



Best Regards,


NJ


Can you share your code here?