Issues with String Length and Adding Characters

Hi all. I am having an issue with some code and was wondering if anyone could offer some input. I have a field called “paymentHistory” that is going to be uploaded to Orchestrator queue item for processing in a different bot. However, this field must contain 84 characters, so if it is not 84 I am trying to add “-” to the end to make it 84 in length.

I have the below code, however it is not adding enough to the end but when I recreate just this part in a small test code it works fine. Any advice?

How many characters is it off by? The code looks good from what I can tell in the screenshot. If you can post a copy of the sequence I can take a closer look at it.


Try Padding :slight_smile:

If paymentHistory.Trim.Length < 84
1 Like