
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 02-28-2021 09:20 PM
// New Quebec code to train and publish model
NLUStudioTrainer.trainModel(<nlu id>);
NLUStudioPublisher.publishModel(<nlu id>);
where <nlu id> is sys_id of NLU model present in system.
- 856 Views

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Or you can use the UI
And out of curiosity, can you elaborate on the use case for using these methods?
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi,
I am able to Train the Model successfully but the Publish button is grayed out.. Any idea why it is not allowing me to publish?
Thanks in advance.
Nikita
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi Nikita,
did you solve the problem. I'm interessted in your solution because i also can't publish. I think it's because of protection policy.
Thanks in advance
Nils

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello Nikita,
Please review KB0952640: NLU Model training throws an error without an error message and creates a record in table [ml_solution] for the trained NLU Model solution. After training the NLU Model, the "Publish" button is greyed out and you cannot publish the NLU Model.
Follow the steps in the Workaround section to determine and delete the duplicate record in table [ml_solution] that causes the Publish button to be greyed out.
You will need to be logged into the ServiceNow Support web site to see this KB article.
Best regards,
Brian