alexa-samples / skill-sample-nodejs-salesforce

This project demonstrates how to build an Alexa private skill that integrates with your Salesforce data, utilizing account linking and a personal voice code.
MIT No Attribution
31 stars 49 forks source link

InvalidSlotTypeName #3

Closed abhagat-splunk closed 6 years ago

abhagat-splunk commented 6 years ago

I am getting the following error while using the ask deploy for my application.

-------------------- Update Skill Project --------------------
Skill Id: <hidden>
Skill deployment finished.
Call update-model error.
Error code: 400
{
  "message": "Interaction model is not valid.",
  "violations": [
    {
      "message": "InvalidSlotTypeName: Slot type name \"AMAZON.SearchQuery\" is invalid. The name of a custom slot type must begin with an alphabetic character and can consist only of alphabetic characters or underscores."
    }
  ]
}

Is this something related to the code in the repo? I have been trying to fix the issue using the JSON editor on my Alexa Skills dashboard but it won't work. I found a similar problem on the Salesforce forum but it has no solution.

Torsen commented 6 years ago

Replace all the "AMAZON.SearchQuery" for "AMAZONSearchQuery" in the "en-US.json" file

ericchenmou commented 6 years ago

I made a fix for this in commit bc5aced63e75b41a06c32b8f63ae11c26b2ba2c1 - tagged to the wrong issue in the commit. Please give it a shot and let me know if you are still seeing any issues.

abhagat-splunk commented 6 years ago

@ericchenmou Thanks a lot! 💯