UIPath truncating strings at 10k (10,000) characters

1.4k views Asked by At

We are running into an issue with UIPath that recently started. It's truncating strings, in our case a base 64 encoded image, at 10k characters. Does anyone know why this might be happening, and how we can address it?

The truncation appears to be happening when loading the text variable base64Contents. Seen in the photo below.

base64Contents = Convert.ToBase64String(byteArray);

UIPathActivity

1

There are 1 answers

4
Conor On

As per the UiPath documentation there is a limit of 10,000 characters. This is due to 'the default communication channel between the Robot Executor and the Robot Service has changed from WCF to IPC'

https://docs.uipath.com/activities/docs/log-message

Potential Solution

A way round this could be to write your string to a txt file rather than output it as a log. that way you are using a different activity and the 10,000 character limit may not apply.