Bot with Orchestrator cant find model and path
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: sample
- Sample language: dotnetcore
- Sample name: 14.nlp-with-orchestrator
Describe the bug
When i publish the finished Bot with orchestrator sample and test it in web, the bot throws the following exeption with the message in the App Insights:
"Failed to find or load Model with path C:\home\site\wwwroot\model Invalid or missing model file ("ModelFile" value in config): C:\home\site\wwwroot\model\model.onnx".
When i test the bot locally, everything works just fine. I have uploaded some screenshots for further informations. Maybe it is just a super simple error and i just cant get it, im pretty new to the orchestrator tool.
To Reproduce
Steps to reproduce the behavior:
- Follow the steps from the 14.nlp-with-orchestrator sample
- In my specific case, i dont have any LUIS models, but five QnA Maker Knowledge Bases (There could be some leftovers from LUIS in the screenshots, but they arent causing the problem because on local tests everything works)
- Publish the configured sample to a web app bot
- Test the bot in web and try to trigger a QnA Pair
Expected behavior
The bot should give an answer from one of the connected knowledge bases
Screenshots





@danieldangler, thank you for your patience. When you say you don't have any LUIS models, are you still supplying the LUIS API and key? When running the botframework-cli commands listed in the samples README.md file, are you skipping the bf luis:build step and only running the others?
It looks like the modelPath and snapshotPath property values are not getting properly updated. I will attempt a repro, but if you could answer the above, that would help in my setting up my environment to match yours.
Hey @stevkan, yes, i skipped the complete LUIS part and only did the QnA commands. For these, i used bf orchestrator:create instead of bf orchestrator:build because i already had the knowledge bases set up.
@stevkan i found the problem. The files "model.onnx", "vocab.txt" and "orchestrator.blu" are marked as "Do not copy" in the properties in Visual Studio so if i want to manually publish the files via VS, these three wont get uploaded to the app service as well.

You need to set them to "copy if newer" or "always copy" to publish the files to the service in Azure.
