OrgCheck
OrgCheck copied to clipboard
Oh no, Org Check had an error!
Describe the bug Unable to use app. Anytime I click into any of the tools the below error comes up. Advised to log issue.
To Reproduce Salesforce Information Salesforce API Version: 58 Installed on OrgId: 00D5P0000008aZg Type of this org: undefined Current running UserId: 0054a000000UQOaAAO Current Daily Api Requests: {}
Navigation Information Page: /apex/OrgCheck_Objects_VFP
System Information Language: en-US
Issue #0: INVALID_SESSION_ID
When: While calling a global describe.
What:
Stack:
INVALID_SESSION_ID: This session is not valid for use with the REST API
at r.getError (/resource/1695085472000/orgcheck__OrgCheck_SR/js/jsforce.js:1:72641)
at /resource/1695085472000/orgcheck__OrgCheck_SR/js/jsforce.js:1:71009
at /resource/1695085472000/orgcheck__OrgCheck_SR/js/jsforce.js:1:229493
at /resource/1695085472000/orgcheck__OrgCheck_SR/js/jsforce.js:1:229521
at MutationObserver.o (/resource/1695085472000/orgcheck__OrgCheck_SR/js/jsforce.js:1:104504)
hello @Surenity-devops
Thank you for your time on "trying" to use Org Check and creating this issue!
For your information, the session comes with the one used in Visualforce pages.
In fact, the token used for all queries to salesforce (using JsForce by the way) comes from the markup variable called "$Api.Session_ID
"
And Org Check gets this value int the main Visualforce template page located here: https://github.com/SalesforceLabs/OrgCheck/blob/defbf95875fddd81ca64b74aaf5bb1548f718629/force-app/main/default/pages/OrgCheck_PageTemplate_VFT.page#L238
That being said, what is happening in your case?
Well I assume that your user may not have the system permission called "API Enabled
" which comes with the System Administrator profile.
Let's focus then on your profile and if it has that system permission....
Would you be interested to see if the beta version of Org Check solves your issue? if yes go to https://docs.google.com/forms/d/12NATkaEbN3wsoP7KbO2hKzhlkWveki1AOeZ8_lVUFAc
Do you still have the issue ???
Please refer to this issue it might resolve yours: #118
Refering to the documentation https://salesforcelabs.github.io/OrgCheck/installation/