Error in Wait & Resume Form Task

Hi,

I am getting the below error for Wait and Resume Form Task. Can anyone help me with same?

image

@Shreya_Rao2

As per error some variable is not serializable…it is important to have only thsoe kind of variables …to restrict generally wait for resume is used in a separate sequence only required variables are created in it

Cheers

What do you mean by “Not Serializable” and what needs to be done to make it work?

Hi @Shreya_Rao2 ,
Can you please check on this

Thank you

I am using Wait & Resume Activity in this 3 different ifs

@Shreya_Rao2

Basically whenever wait for resume taka is used all the variables are saved and then it goes to wait…so to save the varibale they need to be of simple types…if not they cant be saved and you would get this error…so properly check the variables used in the scope

Cheers

I have variables with String , Boolean and Dictionary etc datatypes in scope of Wait & Resume Activity. PFB

image

Which varible type might be causing an issue?

@Shreya_Rao2

Mostly ypur businessexception type variable might be causing the issue…try to move it out of wcope and check

Cheers

I tried changing scope of that variable but it doesnt work

@Shreya_Rao2

Is it the aame error?

So now youa re jot seeing that variable when you select wait for resume activity?

Cheers

@Shreya_Rao2 try moving the following variable type out of scope
You can test with one at a time

Browser: My guess would be this since browser type var cannot be serialized.

Other possible variables

BusinessRuleException: Exceptions can be serialized, but if this exception contains any non-serializable properties, it could cause this error.

FormTaskData: It might contain non-serializable properties depending on what data it’s holding.

QueueItem: It might contain non-serializable properties. you will have to check the data for it.

To help you understand serialization better

1 Like

This Worked. Thanks Mukta.
I changed the scope of browser and it worked

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.