This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!
Submit FeedbackHi MB,
The error is in the syntax of the PadLeft function. You should have accounted for the length that the String needs to be once you insert the prefix character. The below modified code should work for you. Hope this helps!
IF Length([Safety Code]) = 6
THEN PadLeft(PadLeft([Safety Code], 7, "C"), 8, "S")
ELSE [Safety Code]
ENDIF
My Solution -