# Problem with External component exception

**URL:** <https://forum.uipath.com/t/problem-with-external-component-exception/259613>\
**Category:** Studio\
**Tags:** database, activities\
**Created:** [October 1, 2020, 3:44pm UTC](https://forum.uipath.com/t/problem-with-external-component-exception/259613 "2020-10-01T15:44:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaciejSartys](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/maciejsartys/32/128135_2.png) [@MaciejSartys](https://forum.uipath.com/u/MaciejSartys)\
**Post date:** [October 1, 2020, 3:44pm UTC](https://forum.uipath.com/t/problem-with-external-component-exception/259613/1 "2020-10-01T15:44:29Z")

</div>

Hello,

I’m experiencing a problem with one of the robots I’m currently testing.  
I have been running on test machine for 3 weeks and it was fine and suddenly is stopped working.  
It has been throwing a couple of different errors, currently it fails at activity that query Access DB.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/f/5/f5f3ef1f064b4c1eb1916be853ba2b8c39cc2359.png)

This is full stack of error, but I can’t figure it out from it what exactly is wrong, what is causing exception. Can anybody tell me what can cause this kind of exception ?  
On my dev computer, it works fine.

- Info: External component has thrown an exception.

RemoteException wrapping System.Runtime.InteropServices.SEHException: External component has thrown an exception.

Server stack trace:  
at System.Data.OleDb.DataSourceWrapper.InitializeAndCreateSession(OleDbConnectionString constr, SessionWrapper& sessionWrapper)  
at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)  
at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)  
at System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)  
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)  
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)  
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)  
at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)  
at System.Data.OleDb.OleDbConnection.Open()  
at UiPath.Database.DatabaseConnection.OpenConnection()  
at UiPath.Database.DatabaseConnection.Initialize(String connectionString, String providerName)  
at UiPath.Database.DBConnectionFactory.Create(String connectionString, String providerName)  
at UiPath.Database.Activities.DatabaseConnect.\<\>c\_\_DisplayClass15\_0.b\_\_0()  
at System.Runtime.Remoting.Messaging.StackBuilderSink.\_PrivateProcessMessage(IntPtr md, Object args, Object server, Object& outArgs)  
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:  
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)  
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)  
at System.Func`1.EndInvoke(IAsyncResult result)  
at UiPath.Database.Activities.DatabaseConnect.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)  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result)  
at UiPath.Executor.InProcessRunner.EndExecute(IAsyncResult result)  
at UiPath.Core.Activities.ExecutorInvokeActivity.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)

---

<div class="post-metadata">

**Author:** ![Pablito](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pablito/32/385495_2.png) [@Pablito](https://forum.uipath.com/u/Pablito)\
**Post date:** [October 2, 2020, 7:43am UTC](https://forum.uipath.com/t/problem-with-external-component-exception/259613/2 "2020-10-02T07:43:57Z")

</div>

> [@MaciejSartys](#):
>
> System.Data.OleDb.DataSourceWrapper.InitializeAndCreateSession

I’m not 100% sure but it looks like robot can’t connect to DB.

---

<div class="post-metadata">

**Author:** ![MaciejSartys](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/maciejsartys/32/128135_2.png) [@MaciejSartys](https://forum.uipath.com/u/MaciejSartys)\
**Post date:** [October 2, 2020, 8:18am UTC](https://forum.uipath.com/t/problem-with-external-component-exception/259613/3 "2020-10-02T08:18:13Z")

</div>

Thanks @Pablito, I’ve found out that there is a network problem on test machine.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [October 5, 2020, 8:18am UTC](https://forum.uipath.com/t/problem-with-external-component-exception/259613/4 "2020-10-05T08:18:32Z")

</div>

Closed on October 5, 2020, 8:18am UTC

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