Cannot Pass Calculate client security hash assignment

Please help me out, I have built a workflow for this Calculate client security hash and it works fine at my end. However, I get 0 when submit it on the platfrom. I have read a lot of previous posts but they don’t fix the problem. Can anyone please give it a look?
Thank you so much Calculate customer credential hash.zip (2.6 MB)

In your sequence System1-Extract client information you forgot to take into account that there’s a space after the colon. Your code extracts the space as well. For example, in the work item below, it extracts " RU90268" instead of “RU90268”.

image

image

You need to get rid of the spaces to clear the assignment. Use Trim() or just add a space after every colon in the extraction code. For example:

ClientInformation.Substring(ClientInformation.IndexOf("Client ID:") + "Client ID:".Length).Split(Environment.NewLine.ToCharArray)(0).Trim

or

ClientInformation.Substring(ClientInformation.IndexOf("Client ID: ") + "Client ID: ".Length).Split(Environment.NewLine.ToCharArray)(0)

Remember to update the extraction code for all three client details.

Thank you so much you save my day :joy:
Hoang Nguyen