Live agent state is switching to offline very quickly from availableIssue The customer reported that they have one user who is using Live agent as an agent and if if he sets his status to online it changes back to offline straight away. When the session debug log is enabled, below error was observed, when the agent was trying to change his/her status. 09:39:06.144 FAILED TRYING TO EXECUTE ON CONNECTION glide.3 (connpid=276097): INSERT INTO awa_agent_presence (`sys_id`,`agent`,`sys_updated_by`,`current_presence_state`,`sys_created_on`,`sys_mod_count`,`sys_updated_on`,`sys_created_by`) VALUES('06b1d9e61b6d8d1032e7eb91b24bcb68','3b8ad5f40f92020006277f5ce1050e7b','kevin.morrison.c402366','9cd83267575313005baaaa65ef94f98b','2022-02-11 09:39:06',0,'2022-02-11 09:39:06','kevin.morrison.c402366') /* gs:CBD901261B2D8D1032E7EB91B24BCBC2, tx:42b1d9661b6d8d1032e7eb91b24bcb6a */ Unique Key violation detected by database ((conn=276097) Duplicate entry '3b8ad5f40f92020006277f5ce1050e7b' for key 'agent_2') : java.sql.SQLIntegrityConstraintViolationException: (conn=276097) Duplicate entry '3b8ad5f40f92020006277f5ce1050e7b' for key 'agent_2':CauseFor this impacted user, the presence state on the instances was not present and was just empty. /awa_agent_presence_list.do?sysparm_query=agent.nameSTARTSWITH<AGENT_NAME>&sysparm_view= Ideally it should be populated with any of the valid states (Online, Away or Offline). Also, in this table, for one user, there can be only one presence state.ResolutionTo resolve this, the customer needs to edit this state field to Offline(or any valid state for that matter). Post that, any change on agent's state will be reflected and persisted.