Repository: microsoft/BotBuilder-Samples

Issue #1187: createkb command failure
Created: 2019-01-30T11:18:25Z
Github issues for [JS]
Sample information

Sample language: nodejs
Sample name: 11.qnamaker

Describe the bug
Command failed: qnamaker create kb --subscriptionKey e7ed684147004f5b924e3348726a3846 --name "qnamaker-QnAMaker" --in deFailed..              Error: {    "operationState": "Failed",    "createdTimestamp": "2019-01-28T09:55:27Z",    "lastActionTimestamp": "2019-01-28T09:55:28Z",    "userId": "91bbd3223eac4a56b14edf858ff1dfc1",    "operationId": "f51a5145-0408-488a-8125-d6dbd472c095"}
To Reproduce
Steps to reproduce the behavior:

Get all the Prerequisites.
2: Run the nmp install command after specifying the path to the sample.
3: Run the az login and az subscription commands.
4: Run the msbot clone command.

While Creating the QnA Maker KB an error occurs,



Expected behaviour
The sample should work according the readme.

Duplicate issue #1205: Can't create the QnA 
Created: 2019-02-05T15:04:38Z
Github issues for C# /JS / Java/ Python should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Sample information

Sample type: [\samples\ or \solutions]
samples
Sample language: [dotnetcore or webapi or es6 or nodejs or typescript]
nodejs
Sample name: 
11.qnamaker

Describe the bug
Give a clear and concise description of what the bug is.
I run the command:
msbot clone services --name "demo-qnamaker1" --code-dir "." --location westus --sdkLanguage "Node" --folder deploymentScripts/msbotClone --verbose
and get  back an error during the KB creation:
Creating QnA Maker KB [qnamaker-QnAMaker]
qnamaker create kb --subscriptionKey 60782c5c0a16434cae9dbd63a95a041f --name "qnamaker-QnAMaker" --in deploymentScripts\msbotClone\34.qna --wait --msbot -q
Command failed: qnamaker create kb --subscriptionKey 60782c5c0a16434cae9dbd63a95a041f --name "qnamaker-QnAMaker" --in deploymentScripts\Failed..              Error: {    "operationState": "Failed",    "createdTimestamp": "2019-02-05T02:56:15Z",    "lastActionTimestamp": "2019-02-05T02:56:17Z",    "userId": "0b151351c8de453b9c56e89dad21f010",    "operationId": "4e1555d9-8217-41fd-9b64-60e217099ee5"}
To Reproduce
Steps to reproduce the behavior:

Go to 'Download BotBuilder-Samples'
Click on ' go to the ...\botbuilder-samples\samples\javascript_nodejs\11.qnamaker and run a dos command and firethe commands in the README.md '
Scroll down to '....'
See error

Expected behavior
Give a clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
[bug]

Closing comment (2019-02-05T18:30:37Z): I'm going to close this as this is more or less a duplicate of #1187
The solution right now is that if you have a bot that uses QnAMaker, you can't use msbot clone services... to create the QnAMaker knowledgebase. You have to create that resource manually. You have two options to replace using msbot clone services...


Use the msbot clone services... command and let it create all resources up until it gets to qnamaker create kb..., making sure you create any remaining resources that it missed at the end.


Get a list of the resources you need by running the msbot clone services... command. It will list all of the required resources. Then choose "no" so that it doesn't create them and you can go create them manually in Azure.


In either case, for the QnA kb, you have to go to qnamaker.ai and go through the steps found by clicking "Create a knowledge base".