cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Workflow Hero

Session Id is invalid or has expired

Hi,

When I execute the apex code to generate a Drawloop document using Loop.loopMessage works when I am in Salesforce classic but not if I trigger the logic in Lightning.
I keep getting the error: "The included Salesforce Session Id is invalid or has expired.  If you continue to receive this error, please have your salesforce.com administrator verify that \"Lock sessions to the IP address from which they originated\" is not checked in your Salesforce security settings: Setup -> Administrative Setup -> Security Controls -> Session Settings"
I have checked and we don't have this option checked.
Do you know what else could it be?
0 Kudos
Reply
5 Replies
Workflow Hero

Re: Session Id is invalid or has expired

Did this ever get answered?

0 Kudos
Reply
Workflow Hero

Re: Session Id is invalid or has expired

Hi there, 

 

I am having the same issue as the above post described.  Regardless of the checkbox "Lock sessions to the IP address from which they originated" is ticked or not, invoking DocGen generation process from a custom Lightning component or from a Detail Page Button (source ode and complete error message attached below) will always return the same error message "The included Salesforce Session Id is invalid or has expired". 

 

Can anyone please advise any additional troubleshooting steps that we can do, or a contact whom we can reach out to have this resolved?

 

window.open('/apex/loop__looplus?sessionId={!$Api.Session_ID}

The included Salesforce Session Id is invalid or has expired. If you continue to receive this error, please have your salesforce.com administrator verify that "Lock sessions to the IP address from which they originated" is not checked in your Salesforce security settings: Setup -> Administrative Setup -> Security Controls -> Session Settings (InvalidSalesforceSessionId)

 

Thanks,

Ethan

0 Kudos
Reply
Workflow Hero

Re: Session Id is invalid or has expired

Any updates on this issue?  We are planning a lightning migration towards the end of the year and would like this to be resolved for testing purposes.

0 Kudos
Reply
Workflow Hero

Re: Session Id is invalid or has expired

It is still happening. Whenever triggering the loopmessage from lightning component will end up receiving the error "The included Salesforce Session Id is invalid or has expired. " Is there anything that you can help for now?  Thanks! @kxiong   @KevinN 

0 Kudos
Reply
Workflow Hero

Re: Session Id is invalid or has expired

@ethanlu This issue seems to be resolved after the recent salesforce outage.

0 Kudos
Reply