I am facing problem of exception while creating the session in virtual agent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2020 08:52 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2020 10:34 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 02:45 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 03:33 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2020 02:46 AM
Thanks for the feedback i am opening a new thread.