Project created from Virtual Assistant template in VS Community 2019 (16.7.6)
C#
Failures occur during QnA cognitive model deployment, Azure resources and steps were successful up to this point. Continued failures with retry occured during the QnA steps, I cancelled the deployment script and checked the logs.
Followed steps here exactly:
https://microsoft.github.io/botframework-solutions/virtual-assistant/tutorials/create-assistant/csharp/1-intro/
Deployment to complete without errors...
From deploy_cognitive_models_log.txt:
AZ CLI passes minimum version. Current version is 2.14.0
test-virtual-assistant-boten-us_Dispatch.dispatch created
[ERROR] Error happened when parsing qna section: Invalid regular expression: /^(markdown)?\r*\n(?<answer>(.|\n|\r\n|\t| )*)\r?\n.*?$/: Invalid group
ENOENT: no such file or directory, lstat 'C:\Users\andre\source\repos\VirtualAssistant1\VirtualAssistant1\VirtualAssistant1\Deployment\Resources\QnA\en-usChitchat.json'
ENOENT: no such file or directory, lstat 'C:\Users\andre\source\repos\VirtualAssistant1\VirtualAssistant1\VirtualAssistant1\Deployment\Resources\QnA\en-usChitchat.json'
ENOENT: no such file or directory, lstat 'C:\Users\andre\source\repos\VirtualAssistant1\VirtualAssistant1\VirtualAssistant1\Deployment\Resources\QnA\en-usChitchat.json'
ENOENT: no such file or directory, lstat 'C:\Users\andre\source\repos\VirtualAssistant1\VirtualAssistant1\VirtualAssistant1\Deployment\Resources\QnA\en-usChitchat.json'
ENOENT: no such file or directory, lstat 'C:\Users\andre\source\repos\VirtualAssistant1\VirtualAssistant1\VirtualAssistant1\Deployment\Resources\QnA\en-usChitchat.json'
[ERROR] Error happened when parsing qna section: Invalid regular expression: /^(markdown)?\r*\n(?<answer>(.|\n|\r\n|\t| )*)\r?\n.*?$/: Invalid group
ENOENT: no such file or directory, lstat 'C:\Users\andre\source\repos\VirtualAssistant1\VirtualAssistant1\VirtualAssistant1\Deployment\Resources\QnA\en-us\Faq.json'
ENOENT: no such file or directory, lstat 'C:\Users\andre\source\repos\VirtualAssistant1\VirtualAssistant1\VirtualAssistant1\Deployment\Resources\QnA\en-us\Faq.json'
ENOENT: no such file or directory, lstat 'C:\Users\andre\source\repos\VirtualAssistant1\VirtualAssistant1\VirtualAssistant1\Deployment\Resources\QnA\en-us\Faq.json'
Confirmed those json files referenced in errors do not exist - there are .qna files present in those directories however.
Hi @veatcha, thanks for reporting this issue. We came up with some questions in order to narrow the problem as we couldn't reproduce the issue currently.
deploy.ps1 being in the root folder of the C# Virtual Assistant?The .json files are created after executing bf qnamaker:convert in qna_functions.ps1 having the collection of .qna files present in Deployment\Resources\QnA\<language>.
As soon as we have any update, we will back to you later 馃槉.
_.json files created from .qna files during deployment_

_Successful deployment of a C# Virtual Assistant created from the VSIX_

Hi - Thanks for the followup -
Trying to follow the thread of the error message regarding the RegEx with an invalid group but can't find where that Regex is maintained in this repo...
botframework cli version:

Command output:

@Batta32 - found the issue here. My node version was set to less than the required version for the botframework cli, and it looks like that was impacted RegEx behaviors. Thanks.
Hi @veatcha, thanks for let us know, we found the issue microsoft/botframework-cli#865 which had the same error message as you described above, and the response was to update the Node version as bf-cli requires node version >= 10.14.1.
Thank you for your time. 馃檪