Hello, I have a problem with my Excel spreadsheet. I’m extracting data from a multi-record webpage to Excel. Each time a data set is run through, I would like to add a string afterwards. I would have thought I could just add an append line event under appand range. However, the Excel file then crashes. How do I get it to write a string under append range in my Excel file during the loop? … See Pictures
Why not adding this “string” as an additional row in your datatable “dtextract”?
It would be then added to the Excel by the Append Range activity together with the other rows.
Just enter an array value like {"text1","text2","text3"}
Number and data types of array elements MUST match number and data types of the datatable columns.
thanks for your help but when i test your array than come this
Source: Private: Add Data Row
Message: The input array is longer than the number of columns in this table.
Exception Type: System.ArgumentException
RemoteException wrapping System.ArgumentException: The input array is longer than the number of columns in this table.
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)