I have a problem with my robot
When I try to compile, I get an error:
RemoteException wrapping System.ArgumentException: Column ‘first name’ does not belong to table DataTable.
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)
This is my excel file:
first name last name gender address city state home phone work phone work email personal email
I am trying to create a robot that captures data from excel
Below is an part my robot which is the problem
@Lukasz_Krasniak
check the EXCEL in the first row if the values taken for the column names are free of surrounding spaces etc.
Ensure Add header is ticked on for read range
in case it is not working after this:
debug the bot and inspect the content of the datatable
use immediate panel and type in youdDataTableVar.Columns(0).ColumnName and inspect the column name returned from this