I've been updating my knowledgebase regulary in the last 3 months with a questions that had follow up prompts. Some questions had more than 8 nested prompts inside each other, and it was working fine till May 20 2020. A week later after trying to update my knowledge-base i receive the error bad argument message: request body. note that i tried uploading the same exact questions that used to work before may 20 2020. When trying to update the KnowledgeBase manually i received the same error. After a lot of testing and trial and error i found out that uploading a question can contain only up to 6 levels of nested follow up prompts in it, other wise i receive the mentioned error.
I checked the documentation https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/how-to/multiturn-conversation to check for any updates regarding the issue but there was nothing.
i'd like to know if this is a bug or a limitation on the creation of the multi turn conversations? noting that this issue was not there before when uploading the exact set of questions.
Thank you
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@AhmedElwy
Thanks for your feedback! We will investigate and update as appropriate.
@AhmedElwy Thanks for the details.If possible could you please share your KB/File.
@cahann Could you please confirm any limitation on nested prompts creation of the multi turn conversations.
@pchoudhari can comment on QnA maker related questions
@AhmedElwy Thanks for the details.If possible could you please share your KB/File.
@cahann Could you please confirm any limitation on nested prompts creation of the multi turn conversations.
Attached is the request body Json of the UpdateKbOperationDTO object using the updateAsync function from the "Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker" SDK. You can try uploading the following json into any KB and it will return the response "error code: bad argument error message request body "
Please share more details about the failed request, to debug the issue better.
We do not have limits for depth of the prompts during request validation. Request has limit for max length of display text in each prompt(500 chars) and max number of prompts in a node(20 prompts).
Please share more details about the failed request, to debug the issue better.
We do not have limits for depth of the prompts during request validation. Request has limit for max length of display text in each prompt(500 chars) and max number of prompts in a node(20 prompts).
This is the Exception Response from the KnwoledgeBase.updateAsync function:
{
"request": {
"method": {
"method": "PATCH"
},
"requestUri": "https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/knowledgebases/75743eb1-f693-441d-913c-85e543a243ad",
"properties": {},
"content": "{\r\n \"add\": {\r\n \"qnaList\": [\r\n {\r\n \"answer\": \"Main Question\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"keyword 1\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 2,\r\n \"answer\": \"Prompt 1\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 3,\r\n \"answer\": \"Prompt 2\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 4,\r\n \"answer\": \"Prompt 3\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 5,\r\n \"answer\": \"Prompt 4\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 6,\r\n \"answer\": \"Prompt 5\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 7,\r\n \"answer\": \"Prompt 6\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"Etihad\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 8,\r\n \"answer\": \"Prompt 7\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 9,\r\n \"answer\": \"Prompt 8\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 10,\r\n \"answer\": \"Prompt 9\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 26,\r\n \"answer\": \"Prompt 25\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 11,\r\n \"answer\": \"Prompt 10\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 12,\r\n \"answer\": \"Prompt 11\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"Etihad\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 13,\r\n \"answer\": \"Prompt 12\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"External Party or Company\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 16,\r\n \"answer\": \"Prompt 15\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 14,\r\n \"answer\": \"Prompt 13\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 24,\r\n \"answer\": \"Prompt 23\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 15,\r\n \"answer\": \"Prompt 14\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"External Party or Company\"\r\n },\r\n {\r\n \"displayOrder\": 2,\r\n \"qna\": {\r\n \"id\": 17,\r\n \"answer\": \"Prompt 16\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"Both\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 18,\r\n \"answer\": \"Prompt 17\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 19,\r\n \"answer\": \"Prompt 18\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 20,\r\n \"answer\": \"Prompt 19\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 27,\r\n \"answer\": \"Prompt 26\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 21,\r\n \"answer\": \"Prompt 20\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 22,\r\n \"answer\": \"Prompt 21\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"Both\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 6,\r\n \"answer\": \"Prompt 5\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 7,\r\n \"answer\": \"Prompt 6\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"Etihad\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 8,\r\n \"answer\": \"Prompt 7\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 9,\r\n \"answer\": \"Prompt 8\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 10,\r\n \"answer\": \"Prompt 9\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 26,\r\n \"answer\": \"Prompt 25\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 11,\r\n \"answer\": \"Prompt 10\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 12,\r\n \"answer\": \"Prompt 11\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"Etihad\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 13,\r\n \"answer\": \"Prompt 12\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"External Party or Company\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 16,\r\n \"answer\": \"Prompt 15\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 14,\r\n \"answer\": \"Prompt 13\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 24,\r\n \"answer\": \"Prompt 23\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 15,\r\n \"answer\": \"Prompt 14\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"External Party or Company\"\r\n },\r\n {\r\n \"displayOrder\": 2,\r\n \"qna\": {\r\n \"id\": 17,\r\n \"answer\": \"Prompt 16\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"Both\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 18,\r\n \"answer\": \"Prompt 17\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 19,\r\n \"answer\": \"Prompt 18\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 20,\r\n \"answer\": \"Prompt 19\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 27,\r\n \"answer\": \"Prompt 26\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true,\r\n \"prompts\": [\r\n {\r\n \"displayOrder\": 0,\r\n \"qna\": {\r\n \"id\": 21,\r\n \"answer\": \"Prompt 20\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"yes\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 22,\r\n \"answer\": \"Prompt 21\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"Both\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 23,\r\n \"answer\": \"Prompt 22\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n },\r\n \"displayText\": \"yes\"\r\n },\r\n {\r\n \"displayOrder\": 1,\r\n \"qna\": {\r\n \"id\": 25,\r\n \"answer\": \"Prompt 24\",\r\n \"source\": \"WorkFlows\",\r\n \"questions\": [\r\n \"no\"\r\n ],\r\n \"context\": {\r\n \"isContextOnly\": true\r\n }\r\n },\r\n \"displayText\": \"no\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n}",
"headers": {
"Ocp-Apim-Subscription-Key": [
"a36d1346a65e4450971f2d9c9fa26cac"
],
"User-Agent": [
"FxVersion/4.700.19.60701",
"OSName/Windows",
"OSVersion/Microsoft.Windows.10.0.18363",
"Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.QnAMakerClient/2.0.20.6003"
],
"Request-Id": [
"|3b4cfe8e-4aba5f4c4875fad7.4."
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Content-Length": [
"47875"
]
}
},
"response": {
"statusCode": 400,
"reasonPhrase": "Bad Request",
"content": "{\n \"error\": {\n \"code\": \"BadArgument\",\n \"message\": \"Request body\"\n }\n}",
"headers": {
"Transfer-Encoding": [
"chunked"
],
"x-envoy-upstream-service-time": [
"14"
],
"apim-request-id": [
"1c3b07d8-4eca-42a3-b0e9-62be48796cd5"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains; preload"
],
"X-Content-Type-Options": [
"nosniff"
],
"Date": [
"Mon, 08 Jun 2020 12:34:27 GMT"
],
"Content-Type": [
"application/json; charset=utf-8"
]
}
},
"body": {
"error": {
"code": "BadArgument",
"message": "Request body",
"target": null,
"details": null,
"innerError": null
}
},
"stackTrace": " at Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Knowledgebase.UpdateWithHttpMessagesAsync(String kbId, UpdateKbOperationDTO updateKb, Dictionary2 customHeaders, CancellationToken cancellationToken)\r\n at Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.KnowledgebaseExtensions.UpdateAsync(IKnowledgebase operations, String kbId, UpdateKbOperationDTO updateKb, CancellationToken cancellationToken)\r\n at CorpOS.Hub.Connectors.QnA.Services.QnAService.UploadToKnowledgebase(UpdateKbOperationDTOAdd updateKbOperationDTOAdd, Operation AddOperation, String knowledgebaseId) in D:\\Conn_QnA\\Conn_QnA\\CorpOS.Hub.Connectors.QnA.Services\\QnAService.cs:line 221\r\n at CorpOS.Hub.Connectors.QnA.Services.QnAService.AddFlowsToKnowldgeBase(List1 fileData, String ethicsKBID) in D:\Conn_QnA\Conn_QnA\CorpOS.Hub.Connectors.QnA.Services\QnAService.cs:line 211\r\n at CorpOS.Hub.Connectors.QnA.Services.QnAService.Upload(IFormFile file) in D:\Conn_QnA\Conn_QnA\CorpOS.Hub.Connectors.QnA.Services\QnAService.cs:line 71\r\n at CorpOS.Hub.Connectors.QnA.API.Controllers.QnAController.AddQnAs() in D:\Conn_QnA\Conn_QnA\CorpOS.Hub.Connectors.QnA.API\Controllers\QnAController.cs:line 37",
"message": "Operation returned an invalid status code 'BadRequest'",
"data": {},
"innerException": null,
"helpLink": null,
"source": "Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker",
"hResult": -2146233088
}
@AhmedElwy , Thanks for sharing, I am investigating on it. will get back by tomorrow.
@AhmedElwy
Tried sample KB with upto 8th level in the multi turn prompt. worked fine for us.
please file the sample export excel for our KB. you can import the same directly on your KB.

80742271-164b-43e5-b923-905307868d0a-KB.xlsx

@somigithub
Here are the following steps for replicating the issue along with screenshots.
This have been tried on 3 different knowledgebases.
1) log in to my knowledgebase through the QnA maker portal
2) create the main Q1 by selecting +Add Qna Pair and start adding 8 prompt levels accordingly without setting any prompt as Context only as shown in your KB exported file.



Once I press Save and Train the following error prompt appears.

If i reduced the number of prompts to 7 i still get the same error, but once i reduced it to 6 it worked and was saved successfully.
Thanks in advance.
@AhmedElwy
sorry to hear it not working at your end. we tested the same at our end and shared screenshot/exported content with you.
our CSS support team, can help get on a call and troubleshoot.
Here are instructions on how to do that process: https://docs.microsoft.com/en-us/azure/azure-supportability/how-to-create-azure-support-request