validation and key-word extraction in the same user input
Describe the bug
I have been trying to do validation (other-> validation->validation rules) and key word extraction (in user input) but the entity extraction somehow did not work (the entity is extracted but the property was not set to the value). I tried to track it with the bot framework emulator and found out every time the entity extraction is conducted, the LuisV3 trace happens twice one right after another (I assume the second time the entity extraction is set to an empty string, but not sure about it).
I also have a question about the order of validation and entity extraction that is not directly related to this bug: which is goes first? Will the user input get extracted first and then validated?
Version
- Bot framework composer (v2.1.2)
- SDK v4
OS
- [x] macOS
- [ ] Windows
- [ ] Ubuntu
To Reproduce
Steps to reproduce the behavior:
- Create a new question
- In 'User Input', set
propertytouser.email,valueto=coalesce(@email), add@ prebuilt emailin expected reponses - I think we can forget about validation for now as it works on my end (it is just a regex email validation)
- See error
Expected behavior
The property should be set to the extracted entity and get validated.Screenshots
This is the section for reproduction of the bug:

Here you can see the first time the entity did get extracted:
But the second time the entity is set to an empty string:
I am investigating.
Hi @chia-lun Apologies for the delay. I am still investigating this.
No worries! Thank you for taking time to investigate.
Hi @chia-lun
Will the user input get extracted first and then validated?
That is correct. But you should use turn.extracted.text instead of user.email.
Regarding the two LUIS traces, do you have interruptions enabled on the prompt for text or dialog?
Hi @chia-lun
Do you still need assistance on this issue?
Closing due to lack of reply. If you still need assistance on this, please comment with the pertinent information and we can reopen to continue.