worfklow studio fire event troubleshooting

mheyman
Tera Expert

;tldr: what other troubleshooting tools are there in ServiceNow that might lead me to the answer?

 

I've got a workflow that has a "fire event" section on it.  I'm getting an error on the "fire event" section, but can't figure out how to get more troubleshooting info to figure out what I did wrong or typo'd.   

 

Script flow is as such

1) Workflow Studio processes an email.

2) The script gets to the "fire event" section to fire a custom event from event registry.

3) The custom event triggers a "send notification" with the prerequisites of "custom event occurred".  

4) The send notification takes the parameters from the fire event section and turns them into an email with an attached template. 

5) The email is then sent in HTML format with the correct data. 

 

Script Debugger doesn't stop on anything.

Script Tracer doesn't point to any errors or problems, or anything related to the error I'm getting.

Testing the workflow gives a generic, useless error message. 

{
    "Action Status": {
        "code": 1,
        "message": "class com.snc.process_flow.engine.serialization.GRProxy$1 cannot be cast to class java.lang.String (com.snc.process_flow.engine.serialization.GRProxy$1 is in unnamed module of loader com.snc.orbit.container.tomcat8.Tomcat8$OrbitTomcat8ClassLoader @43e683f0; java.lang.String is in module java.base of loader 'bootstrap')"
    }
}

As far as I know, Workflow Studio can't send an html based email.  So that change doesn't work.

Looking in the event registry log, I don't see an event being created.

 

Fire Event record

mheyman_0-1779223747246.png

 

Any idea what other debugging type tools exist in ServiceNow to point to what I did wrong?

1 REPLY 1

Vishal Jaswal
Giga Sage

Hello @mheyman 
The parameter 1 and 2 expects string. In Parameter 1 you have provided String however in Parameter 2 (For Each → Record ) you are passing GlideObject, hence the error.

 So, you can update it to dot walk or use script like "fd_data.for_each_record.getValue('sys_id')" or "fd_data.for_each_record.getValue('name')".


Hope that helps!