I talked about this subject again in previous activities, but I couldn’t do it again.
I need to enter the data on the site in my project and get detailed information, but;
I’m using “get text” but I can’t extract the data to excel
RemoteException wrapping System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> RemoteException wrapping System.ArgumentException: Column ‘New Name’ does not belong to table .
at System.Data.DataRow.GetDataColumn(String columnName)
at System.Data.DataRow.set_Item(String columnName, Object value)
— End of inner exception stack trace —
at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Yes, I want to print it on the empty fields I specified in excel.
So how should I do it, I don’t understand too much because I’m new, can you explain or show me in detail?
thanks :)) @Rahul_Unnikrishnan
I have seen the workflow which you have shared, and I have a doubt why have you used open browser again inside for each row? Also, can you try to print the get text value in the output panel before writing the data into excel?
Also, for inserting any values into a datatable, you need to use Add Data Row.
So, inside the for each, create a datarow variable for that datatable and assign the value like DataRowVar(“ColumnName”) = StringValue. Then in Add Data Row activity, pass this datarow variable and the required datatable variable.
Once this is done, use the write range activity and the updated datatable will shown in the excel.