How to fix Name has an issue: The user name cannot be empty when registering?

0
Hi everyone,   I'm running into this problem where whenever I try to register on my register page and I fill in all of the details like Username etc. it gives me this pop-up that says: "Name has an issue: The user name cannot be empty" while the username is NOT empty. How can I fix this?   Thanks in advance.
asked
8 answers
0

Hello,

 

I think Name attribute is empty, that's why you are facing "The user name cannot be empty" error. This error is generating from User object validation rules. 

 

Make sure to set the value for Name attribute when you are registering and save it in Account object.

 

 

 

Hope it helps!

answered
0

I actually have no idea what you mean, sorry bit of a beginner here haha. I have added some screenshots to help me understand where I should be looking.Scherm­afbeelding 2023-11-27 om 14.30.52.jpgScherm­afbeelding 2023-11-27 om 14.30.09.jpgScherm­afbeelding 2023-11-27 om 14.29.34.jpgScherm­afbeelding 2023-11-27 om 14.29.13.jpgScherm­afbeelding 2023-11-27 om 14.29.07.jpgScherm­afbeelding 2023-11-27 om 14.28.53.jpg

answered
0

Hi Diederik, are you creating a Administration.Account or System.User entity using the data inside your Registration object after the validation? It sounds like the validation is coming from there.

answered
0

Scherm­afbeelding 2023-11-29 om 12.15.32.jpgScherm­afbeelding 2023-11-29 om 12.15.23.jpgScherm­afbeelding 2023-11-29 om 12.15.14.jpgScherm­afbeelding 2023-11-29 om 12.14.53.jpg

The Administration.Account (NewAccount) is after the IsValid decision if you mean that?

answered
0

Please someone give an answer to this question

answered
0

Account has a necessary "Name" attribute, so when you are assigning your attributes from Register(entity) to Administration.Account you need to use Name instead of Username as it doesn't get it. image.png

answered
0

Hi Diederik Riemers,

You are using association(Account Entity) or generalization (System.User entity) but when you are entering the value of username this is your entity attribute not from above entity attribute.

Go to OnSave registration microflow -> take change object -> select your entity object & in the member select name attribute & pass $yourEntity/username -> commit the value.

 

I hope you like the answer.

 

answered
0

"Name" is the Username attribute for a User account.

When creating a new account you need to fill this field before committing.

answered