Excel Application Scope: Exception from HRESULT: 0x800A03EC

RemoteException wrapping System.Runtime.InteropServices.COMException: 예외가 발생한 HRESULT: 0x800A03EC
   위치: UiPath.Excel.WorkbookApplication.InitializeCurrentWorkbook(WorkbookArguments workbookArguments,
Workbooks workbooks)
   위치: UiPath.Excel.WorkbookApplication.Initialize(WorkbookArguments args)

 

결론 : 그냥 엑셀 프로그램을 종료하면 됨. 종료하는 김에 백그라운드 프로세스에서 엑셀 프로그램이 있는지도 확인해보고 지워주기.

 

https://forum.uipath.com/t/exception-from-hresult-0x800a03ec-issue/23273/5

 

Exception from HRESULT: 0x800A03EC issue

I was just trying to run a test case which has Excel application scope as one of the activity. Closing the background process of excel resolved the issue

forum.uipath.com

 

Kill Process : Encounter errors while trying to kill a process

 

아니 진짜 어이가 없네

Kill Process에서 에러가 나면 Kill Process는 왜 있는거냐

진짜 어이가 없네 참나 ㅋㅋ 뭐 어쩌라는겨 ㅋ

 

- 원인 : 인터넷 익스플로어 Process Name 이 잘못되었음.

- 해결방법 : Close Window 같은 액티비티를 이용해서 먼저 Kill 하려는 익스플로어에 셀렉터를 잡아서 ' ~ .exe ' 를 확인해주고 동일하게 Process Name 변경하기... 그런데 이건 솔직히 너무 하드 코딩이자나요. 그렇게 생각되신다면 걍 Kill Process에 Continue on Error 속성을 넣어주시면 됩니다. 참나

 

익스플로어 얘 뭐냐 언제는 iexplor고 언제는 explorer고 어느장단에 맞춰서 춤춰야하냐

흠 이거 하드코딩 안하고 해결하려면 어떡해야할까

 

1) UI Element 를 따와서 필요한 부분만 Split 해서 실행시킴

2) 백그라운드 프로세스를 가져와서 ' explo ' 만 매칭 시켜서 값 가져옴 (근데 원하는 값이 아닐수도 있음)

 

흠..... 와 대박 화병날것같아

Invoke VBA : Programmatic access to Visual Basic Project is not trusted

 

위의 에러는 invoke VBA 액티비티로 매크로 코드를 삽입했지만,

엑셀 프로그램 자체에서 외부 프로그램에서 작동하는 매크로를 실행하지 못했다는 에러문이다.

따라서, 이런 에러문이 났을 때는 엑셀 프로그램에서 외부 매크로를 사용할 수 있도록 설정해야한다.

 

[외부 매크로 사용 허용하는 방법]

 

엑셀 프로그램을 켠 후, 옵션에 들어갑니다.

 

[보안센터 - 보안 센터 설정] 으로 들어가주세요.

UiPath 라는 외부 프로그램이 Excel 프로그램을 통해서 매크로를 사용하려면, 보안상 허용을 받아야하는가 봅니다.

특정 프로그램을 허가한다는 내용보다는, 설정 하나만 바꿔주면 모든 외부 프로그램에 대하여서 매크로를 적용시킬 수 있도록 하는 보안 관련 기능인 것 같습니다.

 

 

[매크로 설정] 으로 들어가셔서 다음과 같이 설정하시고 저장하시면 됩니다.

 

 

 

Read Range: A column named '시작문자열(Befrore)' already belongs to this DataTable.

 

읽어오려는 엑셀 파일의 컬럼 값이 똑같을경우 생기는 에러!

다음과 같이 이름이 같은 두개 이상의 컬럼이 존재하기 때문이다.

 

참고로 에러명의 'A'는 컬럼A를 말한게 아니었음.

 

http://Message: The following errors were encountered while processing the workflow tree: 'Main': The private implementation of activity '1: Main' has the following validation error: Value for a required activity argument 'Value' was not supplied. 'Main': The private implementation of activity '1: Main' has the following validation error: Value for a required activity argument 'Value' was not supplied. Exception Type: System.Activities.InvalidWorkflowException RemoteException wrapping System.Activities.InvalidWorkflowException: The following errors were encountered while processing the workflow tree: 'Main': The private implementation of activity '1: Main' has the following validation error: Value for a required activity argument 'Value' was not supplied. 'Main': The private implementation of activity '1: Main' has the following validation error: Value for a required activity argument 'Value' was not supplied.

 

assign 중에

aa = " " 가 있었는데 얘가 문제가 되었다.

 

Error ERROR Validation Error Cannot access a disposed object.
Object name: ‘~~~~~~~~~~~’. Main.xaml

 

해결방안 : Manage Packages 에서 기존에 있는 패키지 업그레이드. 혹은 다운그레이드 했다가 다시 업그레이드. 아니면 지웠다가 다시 설치

 

 

Source: Read Write Datatable (Read Range)

Message: The workbook does not exist Exception

Type: System.ArgumentException

RemoteException wrapping System.ArgumentException: The workbook does not exist at UiPath.Excel.WorkbookFile..ctor(String workbookPath, String password, Boolean createNew) at UiPath.Excel.Activities.WorkbookActivity`1.ConstructWorkbook(String path, String password, Boolean createNew) at UiPath.Excel.Activities.WorkbookActivity`1.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state) at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

 

따이쒸.....

data\output\test.xlsx => 가 문제였던 것...

full Path 를 써줘야한다... => C:\1RPA\testProcess\data\output\test.xlsx

 

RemoteException wrapping UiPath Excel ExcelException: Failed opening the Excel file <엑셀파일경로> Possible reasons: the file is corrupt, the file is already used by another process or you don't have permissions to open the file.   ---> RemoteException wrapping System.Runtime.InteropServices.COMException: 'C:\Users\user\.nuget\packages\exceldatalibrary\1.1.1\lib\net45\data\Output\63811100' 파일을 사용할 수 없습니다. 원인은 다음과 같습니다.
• 해당 파일 이름이나 경로가 없습니다.
• 다른 프로그램에서 파일을 사용하고 있습니다.
• 저장하려고 하는 통합 문서 이름이 현재 열려 있는 통합 문서의 이름과 같습니다.

 

*** 체크리스트

백그라운드로 Excel 프로그램이 실행되어져있는지?

파일명이나 경로에 문제가 있는건 아닌지?

작업하는 엑셀 파일을 실행중인건 아닌지?

+ Recent posts