Write Range: Only activities which have been requested to cancel can call MarkCanceled. Check ActivityInstance.HasCancelBeenRequested before calling this method

Can someone help me with the below error?

RemoteException wrapping System.InvalidOperationException: Only activities which have been requested to cancel can call MarkCanceled. Check ActivityInstance.HasCancelBeenRequested before calling this method.
at System.Activities.AsyncCodeActivityContext.MarkCanceled()
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at UiPath.Shared.Activities.AsyncTaskCodeActivity.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at UiPath.Shared.Activities.ContinuableAsyncCodeActivity.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)

dt_PortalExtract_Gsuite

[primaryEmail,orgUnitPath,suspended,creationTime,lastLoginTime,customSchemas.WOWCustomSchema.EmployeeNumber,LicensesDisplay,Product Name,Extract Date,Status,License Type
000111@ws.com.au,/WGroup/BusinessDeskless/SharedMailboxesMDM,False,2015-09-28T14:24:51Z,2015-11-06T23:18:07Z,Google Workspace Enterprise Plus,G-suite,22/12/2023,Active,Google Workspace Enterprise Plus
000333.danmurphys.com.au@ws.com.au,/WGroup/TerminatedUsers/ArchivedEnterprise/EGL,True,2015-09-14T07:03:50Z,2015-09-22T22:13:11Z,G-suite,22/12/2023,Terminated,Free

@SAMANTA_COTTACKAL1

Is the sheet already having data?

Is the sheet open while updating?

Are there any locked cell?..

Did you try with a simple table data? Is that working?

Cheers

Hi @Anil_G ,

Last day, the bot was running fine. As of now, now is is not.






Till this stage was already present. Below are the enhancements done from my end.
Read the csv file available to a new datatable dt_Portal Extract_Gsuite , remove few columns from the data table(two are given below) and trying to paste it to a Google sheet location.





@SAMANTA_COTTACKAL1

First did you try with a normal dummy table and check if youa re able to write to google sheets

Cheers