I am facing problem of exception while creating the session in virtual agent.

Shruti Kamboj
Tera Contributor

Hi All, i am working on Virtual Agent and i am facing issue of exception while creating session in virtual agent logs.It also says your last session of conversation is in progress.How to solve this issue?

4 REPLIES 4

Muralidharan BS
Mega Sage
Mega Sage

Hi Shruti,

Try to close the conversation which is in progress, the table you have to look for is - sys_cs_conversation. 

You can try the below in background script, please tweak the encoded query. 

var tocheck = new GlideRecord('sys_cs_conversation');
tocheck.addEncodedQuery('state=chatInProgress');
tocheck.query();
while(tocheck.next()){
tocheck.state = 'faulted';
tocheck.update();
}

 

Thanks

Shruti Kamboj
Tera Contributor
This issue is now solved. But now another issue occurs. Actually, I am working on Ms teams and using virtual agent over there. My virtual agent is showing the topic which I want to raise request but it is not starting the flow in ms teams. On the other hand, in back end on instance the conversation is going smooth. Any help on this issue.

Hi Shruthi, 

I would suggest to close this thread and open a new question, because you will get more tailored response and this thread may fetch you suggestion on your initial question.

Thanks

Thanks for the feedback i am opening a new thread.