Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Hi event state is showing error.

ganeshexpert
Kilo Contributor

Hi,

 

I have create a scheduled script which will trigger event and hence Notification will send.

 

Below is the script:

var ProjectStatus = new GlideRecord('u_project_status');//Here u_project status is a Custom table

ProjectStatus.addEncodedQuery('str_sys_created_onONToday@javascript:gs.daysAgoStart(0)@javascript:gs.daysAgoEnd(0)');

ProjectStatus.query();

if(ProjectStatus.next())

{

    gs.eventQueue('project_status_report',ProjectStatus, null, null);//project_status_report is on the same table

}

 

Events get triggered but after processing showing state Error.

 

 

Thanks,

Ganesh

6 REPLIES 6

Jim Coyne
Kilo Patron

Troubleshooting events can be   pain.   Look in the System Logs for an error or warning at, or near, the same time the event was processed.


m_ahmedmod
Giga Contributor

Hi Ganesh,


This reply is a little late but it might help anyone else experiencing a similar issue.


'Event class' is a mandatory field on the event table, if you're not passing this through the state will change to 'error'.



Hope that helps.