Output while reading excel file

I am running query in sql sever
and getting the out put but unable to write the output into excel
i am uploading my the UiPath file
please correct me
here is the error
"UiPath.Excel.ExcelException: Could not write the data table starting with cell A1. β€”> System.Runtime.InteropServices.COMException: The message filter indicated that the application is busy. (0x8001010A (RPC_E_SERVERCALL_RETRYLATER)) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.CSharp.RuntimeBinder.ComInterop.ComRuntimeHelpers.CheckThrowException(Int32 hresult, ExcepInfo& excepInfo, UInt32 argErr, String message)
at CallSite.Target(Closure , CallSite , Object , Object , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at UiPath.Excel.WorkbookApplication.WriteDataTable(Range startRange, Int32 startRow, DataTable newTable, Boolean includeHeaders)
at UiPath.Excel.WorkbookApplication.WriteRange(String range, DataTable data, Boolean includeHeaders)
β€” End of inner exception stack trace β€”
at UiPath.Excel.Activities.ExcelInteropActivity`1.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)

Database_Connection.xaml (21.6 KB)

Hi @office_work ,

Please check these suggestions below:

Thanks!

@office_work You should check your datatable and write range activity.

I tried this but it’s not working

@office_work

Are you writing to a fresh excel only?

or else if there are filters on existing excel you might get this error

also try with write range workbook activity

cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.