Training NLU Model Error

JD51
Tera Contributor

Hi everyone I've noticed none of the NLU utterances are working while testing the bot, and the topic only runs when I select the topic from the "Show Me Everything" button. I'm starting to believe the NLU model isn't working as it's not picking up any phrases. This is happening after we cloned our instance to a temp instance - temp instance is having issues.


So when attempting to train the NLU model I get a generic error (training failed). When I attempt to try the model with utterances I get the following error code:

Exception caught in the predict call - reason: {"status":"failure","exception":"sn_ml.MLServiceUtil.predict(): com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $"}

 

Tried to search around but no luck in resolving the issue yet. Has anyone come across this or have any pointers?

8 REPLIES 8

Sujatha V M
Kilo Patron
Kilo Patron

@JD51 Navigate to NLU -> Models and please check if your model is trained and published status or showing in Draft status. 

 

Please check the below link for reference,

 

 https://www.servicenow.com/community/virtual-agent-nlu-forum/after-successfully-training-the-model-i...

 

Note : If you still see the model in Draft even after publishing its a different case with ML solution. 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

JD51
Tera Contributor

Hi @Sujatha V M ,

 

Thank you for referencing checking the NLU Model published status. I have double checked this and the model is showing as published. It was last published on the instance it was cloned from. Now within the temp instance, it shows up as published but I am unable to train. When trying to train, throwing a "Training Error" prompt: "The system encountered an unexpected error and couldn't complete your request. Please contact your system administrator for help or try again"

@JD51 Please refer the below support case, 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1200085

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0952640

 

https://www.servicenow.com/community/virtual-agent-nlu-forum/unable-to-publish-nlu-model/m-p/233863

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

JD51
Tera Contributor

@Sujatha V M 
Still coming across error while training. Even after deleting recently attempted trained model under ml_solution.list that resulted in "Error while training solution" with progress bar empty instead of any %. Any other leads to resolving the problem?

Is it possible that I have to delete my solution that is "active = true" as well and try to train the model again?