Botframework-solutions: There was an error while connecting the Skill to the Assistant: Error: Some of the cultures provided to connect from the Skill are not available or aren't supported by your VA. Make sure you have a Dispatch for the cultures you are trying to connect, and that your Skill has a LUIS model for that culture

Created on 26 Nov 2019  路  9Comments  路  Source: microsoft/botframework-solutions

What project is affected?

Virtual Assistant and point of Interest skill

What language is this in?

csharp

What happens?

There was an error while connecting the Skill to the Assistant:
Error: Some of the cultures provided to connect from the Skill are not available or aren't supported by your VA.
Make sure you have a Dispatch for the cultures you are trying to connect, and that your Skill has a LUIS model for that culture

What are the steps to reproduce this issue?

I have updated the botskills and current version is botskills 1.0.10
And also Tried the Botskills connect without languages "en-us"

What were you expecting to happen?

Connect the skill to VA through Botskill command

Can you share any logs, error output, etc.?

botskillconnection-error
skill-manifest

Any screenshots or additional context?

emulator-output

Please help. Thank you

Bot Services Bug customer-replied-to customer-reported

All 9 comments

@diana-RC Hi, since skill uses en-us in cognitivemodels now
image
VA should also uses this
image
I don't know if VSIX has been updated yet, but you could use VA directly here.

Related https://microsoft.github.io/botframework-solutions/skills/tutorials/create-skill/csharp/6-add-your-skill/

@xieofxie Hi, If I update the cognitivemodels.json(from "en" to "en-us") in VA then my bot is not responding. Please find the attachment for reference. Please help. Thank you
cognitivemodelchanged
VA-notresponding

Hi @diana-rc, thanks for reporting this issue!

Are you using the latest version of the Virtual Assistant Sample which contains the method GetCognitiveModels()? This method is used to get your cognitiveModels that most closely matches your locale (i.e. en-us with en-uk ). See here.

We are validating the current behavior of [email protected] and get back to you later.

@diana-rc, looking at your last screenshot, we noticed that the resources are deployed in en but as [email protected] contains the multilanguage functionality will search for en-us and that error will raise.

We followed these steps being in _master_ branch, using the C# solutions and tested locally:

  1. Deploy the Virtual Assistant Sample following this documentation
  2. Once it has finished, check that the cognitiveModels file contains the specific culture like en-us. Also all the resources should contain the specific culture in the name (e.g mbvacstesten-us_Dispatch and mbvacstesten-us_General)
  3. Deploy the Skill Sample following this documentation
  4. Run the Skill Sample
  5. Browse the /api/skill/manifest of your Skill so you can check that the locale contains a specific culture like en-us
  6. Go to the Virtual Assistant Sample folder
  7. Execute the botskills connect command

botskills connect --remoteManifest "/api/skill/manifest" --luisFolder "" --cs

  1. Check that the connection finished successfully

Additional Context

_cognitiveModels file after the deployment of a Virtual Assistant with the resources in en-us_
image

_Dispatch deployed in en-us_
image

_LU folder with en-us files_
image

_Skill Manifest with the locale in en-us_
image

_Botskills connect command executed_

botskills connect --remoteManifest "http://localhost:3978/api/skill/manifest" --luisFolder "C:\Git\botframework-solutions\templates\Skill-Template\csharp\Sample\SkillSample\Deployment\Resources\LU" --cs

_Successful connection between Virtual Assistant Sample and Skill Sample_
image

We hope this helps you and we will be attentive to your response馃槉.

@Batta32 Hi Batta, thanks a lot for the detailed explanation. Sure will update you soon after redeploying. Quick question

  1. I have found there is a big difference between the codes which I have in my VA MainDialog.cs and the latest version of MainDialog.cs. I have attached my MianDialog.cs for your reference.
  2. Should I change the whole MainDialog.cs and also update the Botservices.cs with GetCognitiveModels()?
    3.And then redeploy my VA and skills?
  3. If I do so will my assistant and already added skills(weather,Bingsearch,newskill and Phoneskill) will work as expected

MainDialogcs.txt

awaiting for your reply. Thank you

@diana-rc, the structure of the Virtual Assistant Sample has changed with the updates of the _next_ branch; so if you were using the sample before that merge, it's totally different now. We can't assure you that everything will work if you only update the MainDialog and the BotServices.

For example, the specific culture functionality with the fallback to root language was introduced in the PR #2368 which allows you to handle many cultures like en-us, en-uk, en at the same time. Also, to accept those changes in the connection of the VA - Skill, we updated the Botskills CLI Tool in PR #2131.

As a workaround for the connection, you can use [email protected] which doesn't contain those changes and you can keep your Virtual Assistant and Skill. In this case, you should use the two letter cultures for the connection and the deployment.

npm uninstall -g botskills
npm install -g [email protected]

@Batta32 thank you once again for guidance. I will try using [email protected] and use two letter cultures for the connection and deployment. If I am unsuccessful, I will go for the latest VA and [email protected].
Thank you

@Batta32 thanks a lot . I have installed botskills 1.0.9 and I have added the skill successfully.
Thank you so much

Awesome @diana-RC! I will close this, feel free to reopen if you have a similar issue 馃槉

Was this page helpful?
0 / 5 - 0 ratings