# \[Python Activities RemoteException wrapping System.AggregateException: One or more errors occurred. \]

**URL:** <https://forum.uipath.com/t/python-activities-remoteexception-wrapping-system-aggregateexception-one-or-more-errors-occurred/5461192>\
**Category:** Activities\
**Tags:** question, python, activities\
**Created:** [September 22, 2025, 4:30pm UTC](https://forum.uipath.com/t/python-activities-remoteexception-wrapping-system-aggregateexception-one-or-more-errors-occurred/5461192 "2025-09-22T16:30:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazarel](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/kazarel/32/514411_2.png) [@kazarel](https://forum.uipath.com/u/kazarel)\
**Post date:** [September 22, 2025, 4:30pm UTC](https://forum.uipath.com/t/python-activities-remoteexception-wrapping-system-aggregateexception-one-or-more-errors-occurred/5461192/1 "2025-09-22T16:30:10Z")

</div>

Im getting this error when trying to invoke Python Method.

Here are details:  
Python activities = version 1.9.0  
Python = Python 3.12.10  
.NET = 8.0.414

This is full error in Locals:  
RemoteException wrapping System.AggregateException: One or more errors occurred. (Invalid method name) —\> RemoteException wrapping System.InvalidOperationException: Invalid method name  
at UiPath.Python.Activities.InvokeMethod.ExecuteAsync(AsyncCodeActivityContext context,  
CancellationToken cancellationToken)  
— End of inner exception stack trace —  
at UiPath.Shared.Activities.AsyncTaskCodeActivity.EndExecute(AsyncCodeActivityContext context,  
IAsyncResult result)  
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor,  
BookmarkManager bookmarkManager)

Here is my Python Code:

def say\_hello():  
return f"Hello! Python is working in UiPath."

 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/5/0/050f823b780b1e2af4d67eb51bad7677c2ef71bb.png)

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [September 22, 2025, 4:41pm UTC](https://forum.uipath.com/t/python-activities-remoteexception-wrapping-system-aggregateexception-one-or-more-errors-occurred/5461192/2 "2025-09-22T16:41:05Z")

</div>

@kazarel

as per error looks like the Name of python method might be wrong..can you please verify

I know as per the data provided it looks good..jsut to confirm try to remove \_ and check may be that might be creating an issue

also is it failing on scope or invoke only?

cheers

---

<div class="post-metadata">

**Author:** ![kazarel](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/kazarel/32/514411_2.png) [@kazarel](https://forum.uipath.com/u/kazarel)\
**Post date:** [September 22, 2025, 4:57pm UTC](https://forum.uipath.com/t/python-activities-remoteexception-wrapping-system-aggregateexception-one-or-more-errors-occurred/5461192/3 "2025-09-22T16:57:33Z")

</div>

I think its failing on Invoke only. this is the output error

 ![image](https://global.discourse-cdn.com/uipath/original/4X/9/0/1/90109e66540a44b85c490035995508d7649281f6.png)

I modified my python to have no \_

def testText():  
return f"Python is working in UiPath."

Python scope:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/8/7/9/87989b922cd9d8c0489f816517b04c22efe9ee28.png)

Load python:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/2/b/7/2b7b759c058a19a320f21590873441e0af36ec3d.png)

Invoke Method:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/4/0/640533aa5764800e037fae48c6f7ef51579431a0.png)

Get object:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/f/9/c/f9ce0ee531c435e4e54dc44a1888bed5a3b16caf.png)

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [September 23, 2025, 2:06am UTC](https://forum.uipath.com/t/python-activities-remoteexception-wrapping-system-aggregateexception-one-or-more-errors-occurred/5461192/4 "2025-09-23T02:06:46Z")

</div>

@kazarel

Is testText a variable that you created?

As if its a string it should be between double quotes

If variable make sure you add the name pr assign name to that variable and that name should be testText again..

Cheers

---

<div class="post-metadata">

**Author:** ![kazarel](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/kazarel/32/514411_2.png) [@kazarel](https://forum.uipath.com/u/kazarel)\
**Post date:** [September 23, 2025, 6:35am UTC](https://forum.uipath.com/t/python-activities-remoteexception-wrapping-system-aggregateexception-one-or-more-errors-occurred/5461192/5 "2025-09-23T06:35:26Z")

</div>

Got it to work already. Thanks

---

<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:** [September 26, 2025, 6:35am UTC](https://forum.uipath.com/t/python-activities-remoteexception-wrapping-system-aggregateexception-one-or-more-errors-occurred/5461192/6 "2025-09-26T06:35:57Z")

</div>

Closed on September 26, 2025, 6:35am UTC

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