If the text is too long, the program crash

studio

#1

When I’m reading a file to a string(attachment) in a process, it crashes.
If I reduce the lines of the file, it’s going well… It’s not a too large file, but UiPath can’t read it.
Also, for the string type in UiPath has a short String length limitation.

test.zip (879 Bytes)


#2

Hey @tomy

WILL YOU share that step where you are getting exception.might be you are using writeline to check your content?

Let me know :slight_smile:

Regards.>!!
AKsh


#3

Hi @aksh1yadav I’ve attached my code on the post, if you open it and run, you will see the issue.
Yes, I used writeline and log message to check the output, it doesn’t work.


#4

Hi @tomy,

yes you ll get the error while you are using log message/write line activity with longer text.
you can write into another text file to text the data.

Regards,
Arivu


#5

@tomy, Message Box is working but unfortunately you couldn’t see such long texts.

As you have 248636 characters in your string it has a problem in writing to writeLine /Log Message.

Regards,
Dominic :slight_smile:


#6

OK, so, it’s designed to be like this. I see.


#7

hey @tomy

This is a known issue and already discussed in older posts here.

and writeline to debug a shorter text strings but still you want for debugging purpose then use a text file to write your data use write text activity for the same.

Regards…!!
Aksh


#8

Hi, @aksh1yadav

I see. Will it be fixed in the future?
It’s very confusing when the data (usually dynamic) come to a limited length, it shows Exception, and the message is not clear.

User will feel it’s unstable…

exception

Thanks and regards,
Tomy


#9

Thanks


#10

Hi Tomy,
I have a file and translate to base64 encodestring, so the string is too long ,the length is 100044, if I use HTTP Request activities the UiPath crashes like your’s.
I code in Python , it can run and give the right result back.

what can we do with this? I think it is a bug of UiPath, right?
Thanks
An


#11

Do you use Log message or Write Line?


#12

@Gabriel_Tatu
We are also experiencing crashes when too much text is used.

Previously it was known that Write Line and Logging can cause it, however, it’s happening when using the folllowing:

  • Read Text File, then concatenating to the string when there’s a lot of text
  • Copying thousands lines of text to the Clipboard.

We have found that this is isolated to certain machines or servers, so as a workaround currently, we don’t run those processes on that machine.

If there is a quick setting change needed, because it seems like some memory-related issue, please let us know what we can try. I have not really dove into this issue yet partly because we don’t know for sure if it’s a UiPath issue, a Server issue, or a combination, and am also unsure which team would best support in a resolution.

I can probably reproduce the crash if I get time next week.