Issue with a DT column split by position

im pulling in some data from excel into a DT. i need to simply split one column. i need to assign the right 9 characters. im struggling. any advice would be appreciated

The image shows an assignment operation in a UiPath workflow, where the value of "row("Cost Code").Split('9130').ToString" is being assigned to the variable "NINSplit." (Captioned by AI)

Is this u looking for ?

Hi @Waterfowl_Waterfowl_hunte

row("YourColumnName").ToString().Substring(Math.Max(0, row("YourColumnName").ToString().Length - 9))

Regards,

This is exactly it. thank you. I tried for 2 hours. i appreciate the education.

1 Like

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