# Get Python Object: Error converting Python object - String result

**URL:** <https://forum.uipath.com/t/get-python-object-error-converting-python-object-string-result/326504>\
**Category:** Activities\
**Tags:** question, python, activities\
**Created:** [July 1, 2021, 12:35am UTC](https://forum.uipath.com/t/get-python-object-error-converting-python-object-string-result/326504 "2021-07-01T00:35:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BotAM97](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/botam97/32/177289_2.png) [@BotAM97](https://forum.uipath.com/u/BotAM97)\
**Post date:** [July 1, 2021, 12:35am UTC](https://forum.uipath.com/t/get-python-object-error-converting-python-object-string-result/326504/1 "2021-07-01T00:35:42Z")

</div>

**Edit1** I removed the normal returned results and I just replaced it with “1” and that worked in UiPath. I think there is a mismatch between what Python is returning and what Uipath Get Python Object TypeArgument is.

**Edit 2** So I discovered that the string returned might be too big which is causing issues. The reason that I say this is that I sliced the returned string to bring back only the first 100 characters and that worked perfectly fine in UiPath. Is there a way to assign a large string or would that be another variable type?

I currently have a python script that returns a result in a form of a string. I even checked the returned variable type and it says it is string.

I can load the script, I can invoke the method but the minute that I try to get the Python Object , I get the following error with no real indication on what is going on. Has anyone encountered this before?

**“Get Python Object: Error converting Python object”**

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

---

<div class="post-metadata">

**Author:** ![jaff521](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jaff521/32/263532_2.png) [@jaff521](https://forum.uipath.com/u/jaff521)\
**Post date:** [April 5, 2022, 2:18am UTC](https://forum.uipath.com/t/get-python-object-error-converting-python-object-string-result/326504/2 "2022-04-05T02:18:55Z")

</div>

same problem, I am rookie, and you have silution?
