Action center - Read the values from datatable and process each values using action center task

Hi All,

I want to read the values from datatable and process each values to find the threshold limit using action center task but I’m getting the below error.

Kindly suggest any solutions

System.Exception: Type ‘System.Data.DataRow’ cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. Alternatively, you can ensure that the type is public and has a parameterless constructor - all public members of the type will then be serialized, and no attributes will be required. —> System.Runtime.Serialization.InvalidDataContractException: Type ‘System.Data.DataRow’ cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. Alternatively, you can ensure that the type is public and has a parameterless constructor - all public members of the type will then be serialized, and no attributes will be required.

@AnishKumar

-Convert DataRow to Dictionary: Convert each DataRow to a Dictionary<string, object> which is serializable.

-Process DataTable and Convert Rows: Loop through the DataTable, convert each DataRow to a Dictionary, and then pass it to the Action Center task.

-Create Action Center Task: Use UiPath’s Action Center activities to create tasks, passing the serializedRows list.

Hi @AnishKumar

Are you using the wait for document validation action and resume activity inside the For each or any iteration activity.

If yes, then the Wait for document validation action and resume activity not works in these activities like For each, while, do while activities. This activity not supports inside these looping activities. It will throw this serialized exception.

Hope it helps!!

@bavyaravu133 @mkankatala Thanks for responding

I need to process the each values in datatable using for each activity and then create task for each value in action center…how can we implement this?
Please suggest