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

Error in 'Fire Event' Action in Flow Designer, how to resolve?

Damayanti Sarod
Tera Contributor

Hello Community,

I am getting the below error , while checking the flow executions in Flow Designer.
What does the below error mean and how to resolve it?

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 @503372ec; java.lang.String is in module java.base of loader 'bootstrap')

DamayantiSarod_0-1758039940936.png



Thanks!



4 REPLIES 4

Bhuvan
Mega Patron

@Damayanti Sarod 

 

Check your flow & actions carefully as I believe you are trying to assign Glide Record object to a string output that is causing the issue. Convert the object to string and pass the value to output and subsequent steps and try it.

 

If this helped to answer your query, please mark it helpful & accept the solution. 

 

Thanks,

Bhuvan

@Damayanti Sarod 

 

Did you get a chance to review this as I believe the information provided should answer your question

 

If my response helped to guide you or answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

kaushal_snow
Mega Sage

Hi @Damayanti Sarod ,

 

It indicates a type casting issue in the Fire Event action within your flow. Specifically, it's attempting to cast a GlideRecord proxy object to a string, which is not valid.....

 

To resolve this:

 

>> Review Input Variables: Ensure that the input variables for the Fire Event action are correctly defined. The event data should be a string, not a GlideRecord object.

>> Modify the Fire Event Action:

If you're passing a GlideRecord object, extract the necessary field value (e.g., sys_id) and pass that as a string....For example, instead of passing current, pass current.sys_id.toString().

>>Check Event Parameters: Verify that the parameters you're passing to the event match the expected data types defined in the event's schema.

>> Test the Flow: After making the necessary adjustments, test the flow to ensure the error is resolved.

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

anurampalli
Tera Contributor

The word serialization in the error says it is a type casting issue.

 

Are you trying to assign an object to a string? Or doing a toString() on a complex object like a JSON or GlideRecord?