Error on Wait For Document Validation Action And Resume activity

I am working with document understanding and Action center but when the bot gets to the Document Validation Action And Resume activity throws an Errorm the error that are shown in the image.

If somebody knows how to fix it, I would really appreciate your help

In the .xaml file where you have the Wait for Action and Resume activities, all variables / arguments must be of data types that are serializable (e.g. simple types like strings, integers, arrays of strings are generally ok).

In the error message above I suppose you have a variable of type Array of FileInfo, to store the output of a DirectoryInfo.GetFiles() command? If that’s the case you might want to try changing it to an Array of String, and use Directory.GetFiles instead.

1 Like

Is it working now? If it did, please mark my response as the answer so that others may benefit as well.

Thanks for your help, I tried what you suggest and now is working