Skip to main content

Why we we encounter this error and how to solve it.

"exceptionMessage: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session"

Any ideas?

This only happens I try to use Action type as Apex and Apex-type:Anonymous block

For others cases like quick action/PB its works fine

#TrailblazerCommunity #MassActionScheduler #Salesforce #TrailblazerCommunityHelp

2 Antworten
  1. 27. Juli 2021, 11:12

    Thanks for the reply,

    I found that the issue was with named credential settings.

    Use SOAP API instead of REST API when invoking anonymous apex · Issue #103 · douglascayers-org/sfdx-mass-action-scheduler · GitHub

     

    Or after doing this error got resolved that day but comes the next day,Then we can simply go to named credentail =-edit it (Without changing anything)-Hit save-->Bt this login window will open,you can just login with your mass action user and just continue.This error will be resolved

0/9000