Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Session ID - Globally Unique?

    Posted 08-19-2025 15:23
    No replies, thread closed.

    Hello!

    I'm responsible for building out reporting for our Genesys Cloud implementation, and I'm finding that in the last week or two we have Session_IDs within the Particpant Session data that are repeats. The Conversation IDs are different, participant data....That's led me to believe I have a bug since when compared to the grand total of call volume, these duplicated Session IDs represent less than 1%, but when I brought it up to someone they informed me that Session IDs are not globally unique, and are only unique per Conversation ID. My world has been turned upside down, and I can't find in documents to confirm one way or the other. 


    #Reporting/Analytics

    ------------------------------
    Daniel Pisani
    ------------------------------


  • 2.  RE: Session ID - Globally Unique?
    Best Answer

    Posted 08-19-2025 16:55
    No replies, thread closed.

    Hey Daniel,

    I was able to find an older migrated post from the Dev forum that has some additional info, including this useful diagram with some primary / foreign key relations.

    In short, session IDs are unique across conversations but are not entirely unique across an org.

    I hope this was helpful.



    ------------------------------
    Jason Kleitz
    Online Community Manager/Moderator
    ------------------------------



  • 3.  RE: Session ID - Globally Unique?

    Posted 08-20-2025 09:39
    No replies, thread closed.

    Thank you. I was afraid this was the case, but at least I now know. We've been building our database out with assumption of Session ID being unique, and joining tables using only that. It sounds like we need to make a new key that is a combination of Conversation ID + Session ID. 



    ------------------------------
    Daniel Pisani
    ------------------------------



  • 4.  RE: Session ID - Globally Unique?

    Posted 08-20-2025 14:40
    No replies, thread closed.

    Yeah. ConversationID will be a unique primary key, with session_ID being another key that you can use to associate with an interaction. I'd love to hear back from you once you've been able to successfully set up your own data system!



    ------------------------------
    Jason Kleitz
    Online Community Manager/Moderator
    ------------------------------



  • 5.  RE: Session ID - Globally Unique?

    Posted 08-21-2025 01:03
    No replies, thread closed.

    We found the same "problem" (session id not unique), unfortunately after we had filled the database with lots of data. We have to changed our database schema and plan to use participant_id + session_id as the primary key. My question: Is the participant_id unique over the org or do we need the conversation_id to create the primary key? 



    ------------------------------
    ---------------------------------------------
    Hans-Gerd Sandhagen
    Software Developer
    Fiebig GmbH
    ---------------------------------------------
    ------------------------------



  • 6.  RE: Session ID - Globally Unique?

    Posted 08-21-2025 09:00
    Edited by Daniel Pisani 08-21-2025 09:20
    No replies, thread closed.

    Interesting! Since I haven't yet fixed ours----is there a reason you chose Participant ID + Session ID instead of Conversation ID + Session ID? We were going to do the latter, but if Participant ID + Session ID is better....I want to make sure I don't set something up I need to re-adjust all over again. 

    *Oop. Now I see that you were also asking this same question. Yeah, I'm very curious on this now too. 

    ------------------------------
    Daniel Pisani
    ------------------------------



  • 7.  RE: Session ID - Globally Unique?

    Posted 09-03-2025 08:26
    Edited by Johan Cantens 09-03-2025 08:26
    No replies, thread closed.

    Hello,

    Issue is related to participant and session that is being created on same second. Genesys can fix this by using more recent UUID generator in there framework. Al cases I have analysed are simular as in screenshot. Should be easy fix for them...

    Kind regards,

    Johan



    ------------------------------
    Johan Cantens
    Independant Genesys Consultant & Data Architect
    ------------------------------