I have a ClassificationResult variable whose scope is limited to a sequence, let’s call it Sequence1. Sequence1 is within a larger sequence, let’s call it Sequence2, in which I have a “Wait For Document Classification Action and Resume” activity that is outside of Sequence1. I still get the error “Non-serializable variable ‘ClassificationResult’ in activity ‘Sequence2’ present in scope of persistence activity ‘Wait For Document Classification Action and Resume’.”
According to the link below, this rule checks “if there are any variables that are not serializable in the scope of the following persistence activities or in the scope of their parent activities.” This is not true for my case (the variable is in a different child activity of the parent), yet I’m still getting the error. Studio - ST-DBP-025 - Variables Serialization Prerequisite (uipath.com)
Not sure if this is a more accurate description of the rule, but I am currently running a process as I described above, where the non-serializable variable is in a parent scope but not in the scope of the long-running activity, and it appears to be working as designed.