Hi
I am trying to create a onboarding process, i have a flow to create AD account for new joiner. The flow was working fine few days back but now i get this error Invalid value specified for property 'mailNickname' of resource 'User'.

Here is the picture of the flow.

My company uses First name and first letter of last name for email address, so i am using toUpper(substring(triggerBody()?['LastName'],0,1)) to achieve this.
Please help!