No Element Found


When I try to post 1000+ line items to SAP, it fails in between with the below error:

This error occurs in random, when it tries to open an excel and write in a cell.

System.NullReferenceException: No Element was found.
at RCA.Activities.Windows.ControlActivity.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
at AkaBot.Shared.Activities.TaskAsyncCodeActivity.ExecuteAsyncWithResult(AsyncCodeActivityContext context, CancellationToken cancellationToken)
at AkaBot.Shared.Activities.TaskAsyncCodeActivity`1.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state)
at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Normally, Excel Write Cell or Write Cell activity has no connection to Windows Control input. So we believe there must be something wrong with the logic that you are implementing, please double check again.