function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marisa CoganMarisa Cogan 

"Session not found.." error in Marketing Analytics

I have received this error several times today while using Marketing Analytics:  "Session not found, missing session hash: pPrUmPpzVQi/tNwYmVTlLvuLVlq2vMrlBVwmKXRKGqU= This error usually occurs after a session expires or a user logs out."  Can anyone tell me why it is doing this?  SF Support was unable to help and directed me here.  Thanks. 
Best Answer chosen by Marisa Cogan
Deepali KulshresthaDeepali Kulshrestha
Hi Marisa,
This error message can be thrown in the following scenarios:
1) The affected integration is sharing credentials with a user or another integration.
 In this case, if the user or the other integration log out of Salesforce.com while the first integration is running, the existing Session ID will be invalidated, and the integration will get the INVALID_SESSION_ID error message the next time it tries to send a message to the Salesforce API. To solve this problem, avoid sharing credentials and make sure each integration application or user use their own username.

2) One integration is making concurrent calls and not handling the session ID status.
 Integrations that make concurrent API calls and issue logout calls run a higher risk of receiving INVALID_SESSION_ID errors. For example, if the integration performs the following operations, in this order: 1. Login 2. Create 3. Logout An operation may attempt to issue a create call even though the other operation has logged out, resulting in an INVALID_SESSION_ID. Concurrency is not explicitly supported in the Web Services API
 and the scenario described above is not recommended. However, in some cases, multiple API requests may issue concurrent calls under the same username (i.e. possibly using the same session).
 For example, one user may be using the Outlook Edition plugin and a third-party integration at the same time.
 
 I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha

All Answers

Deepali KulshresthaDeepali Kulshrestha
Hi Marisa,
This error message can be thrown in the following scenarios:
1) The affected integration is sharing credentials with a user or another integration.
 In this case, if the user or the other integration log out of Salesforce.com while the first integration is running, the existing Session ID will be invalidated, and the integration will get the INVALID_SESSION_ID error message the next time it tries to send a message to the Salesforce API. To solve this problem, avoid sharing credentials and make sure each integration application or user use their own username.

2) One integration is making concurrent calls and not handling the session ID status.
 Integrations that make concurrent API calls and issue logout calls run a higher risk of receiving INVALID_SESSION_ID errors. For example, if the integration performs the following operations, in this order: 1. Login 2. Create 3. Logout An operation may attempt to issue a create call even though the other operation has logged out, resulting in an INVALID_SESSION_ID. Concurrency is not explicitly supported in the Web Services API
 and the scenario described above is not recommended. However, in some cases, multiple API requests may issue concurrent calls under the same username (i.e. possibly using the same session).
 For example, one user may be using the Outlook Edition plugin and a third-party integration at the same time.
 
 I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
This was selected as the best answer
Marisa CoganMarisa Cogan
Thank you Deepali.  I believe it may be the first one, since we have been sharing our credentials with a third-party provider that is trying to help us with Analytics.  Thanks so much!