OrgCheck icon indicating copy to clipboard operation
OrgCheck copied to clipboard

Oh no, Org Check had an error!

Open Surenity-devops opened this issue 1 year ago • 3 comments

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) Screenshot 2023-10-10 at 8 44 33 am

Surenity-devops avatar Oct 09 '23 22:10 Surenity-devops

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....

VinceFINET avatar Oct 13 '23 11:10 VinceFINET

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

VinceFINET avatar Mar 19 '24 22:03 VinceFINET

Do you still have the issue ???

VinceFINET avatar Mar 26 '24 13:03 VinceFINET

Please refer to this issue it might resolve yours: #118

VinceFINET avatar May 14 '24 13:05 VinceFINET

Refering to the documentation https://salesforcelabs.github.io/OrgCheck/installation/

image

VinceFINET avatar May 14 '24 13:05 VinceFINET