Wait for Validation Action and Resume Throwing Run Time Exception

20.10.2+Branch.master.Sha.cf481ddc1ae94ab83e743f85d96fbfeca8fc705c

Message: Cannot serialize the DataTable. DataTable name is not set.

Exception Type: System.InvalidOperationException

RemoteException wrapping System.InvalidOperationException: Cannot serialize the DataTable. DataTable name is not set.
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.Runtime.DurableInstancing.InstancePersistenceContext.EndOuterExecute(IAsyncResult result)
at System.Activities.WorkflowApplication.UnloadOrPersistAsyncResult.OnPersisted(IAsyncResult result)
at System.Runtime.AsyncResult.SyncContinue(IAsyncResult result)
at System.Activities.WorkflowApplication.UnloadOrPersistAsyncResult.Persist()
at System.Activities.WorkflowApplication.UnloadOrPersistAsyncResult.CollectAndMap()
at System.Activities.WorkflowApplication.UnloadOrPersistAsyncResult.Track()
at System.Activities.WorkflowApplication.UnloadOrPersistAsyncResult.EnsureProviderReadyness()
at System.Activities.WorkflowApplication.UnloadOrPersistAsyncResult.InitializeProvider()
at System.Activities.WorkflowApplication.UnloadOrPersistAsyncResult…ctor(WorkflowApplication instance, TimeSpan timeout, PersistenceOperation operation, Boolean isWorkflowThread, Boolean isInternalPersist, AsyncCallback callback, Object state)
at System.Activities.WorkflowApplication.IdleEventHandler.OnStage1Complete(IAsyncResult lastResult, WorkflowApplication application, Boolean isStillSync)
at System.Activities.WorkflowApplication.IdleEventHandler.Run(WorkflowApplication instance)
at System.Activities.WorkflowApplication.OnNotifyPaused()

Try setting the DataTable name either from the constructor or the assign activity.
See this → Cannot serialize the DataTable - #16 by ppr

This error is due to wait for validation action and resume activity. It does not have any datatable, it returns the validated extraction results

Hi @madhu6393,

Can you please share the screenshot of your workflow and settings/value you have passed in wait for validation activity?

This would help us understand the issue better.

Regards
Sonali

Response From Uipath :slight_smile:

The tablename issue is fixed with v1.2 version of persistence activities package. Kindly
update the package to >= v1.2 and check if the issue still persists.
Ref - https://docs.uipath.com/releasenotes/docs/uipath-persistence-activities#v12