tprouvot / Salesforce-Inspector-reloaded

Chrome extension to add a metadata layout on top of the standard Salesforce UI to improve the productivity and joy of Salesforce configuration, development, and integration.
https://chrome.google.com/webstore/detail/salesforce-inspector-relo/hpijlohoihegkfehhibggnkbjhoemldh
MIT License
213 stars 65 forks source link

[Show all data] REST Error While GET inside Inspect.js and Inspector.js files #561

Closed XN-W closed 1 month ago

XN-W commented 1 month ago

Make sure to read the troubleshooting section before creating an issue

Describe the bug When open any Salesforce Object by clicking "Show All Data", this error displays on the screen. Error::>> "Error describing layout: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1618518721-1611420 (-1264710718)". By reading all details in chrome developer tool under Network tab, I found that it is a REST ERROR which is not able to complete GET due to the error inside file Inspect.js...code line 72 and for Inspector.js.....code line 91

To Reproduce Steps to reproduce the behavior:

  1. Go to 'any object inside Salesforce'
  2. Click on 'Inspector Icon'
  3. then Click on 'Show All Data'
  4. On top of the page
  5. See error

Expected behavior Displays Error::>> "Error describing layout: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1618518721-1611420 (-1264710718)"

Screenshots wq wq1

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

tprouvot commented 1 month ago

Hi, Are you the one who created a case with Salesforce support? If so, I think that you mentioned you are also facing the issue with OG version correct?

Does this issue occur in all your environments or only for a particular one? Do you have others colleagues with the same issue or you're the only one ? Thanks

tprouvot commented 1 month ago

Could you give me the current release of your org and the patch (info available under Org tab from inspector's popup)

XN-W commented 1 month ago

Hi,

Yes, you are right. It occurs only in the Production environment not on Sandboxes and for everyone in the team.

Current Version: Summer '24 Patch 19.5 / 250.19.5

Thanks,

tprouvot commented 1 month ago

Did you enable API Access Control recently or migrate to Hyperforce ? Can you try to use the extension in anonymous window ?

If it does not work, could you try to use another salesforce extension such as MavenTool or ORGanizer to check if you have the same issue ?

XN-W commented 1 month ago

No change in API Access Control but yes our production org migrated to Hyperforce on 13th Aug.

And this issue has been occurring since 14th July.

It is not possible to install Salesforce Inspector Reloaded extension in Chrome Incognito Mode.

I use ORGanizer, nobody face any such issue.

tprouvot commented 1 month ago

@XN-W you don't have to install reloaded in incognito mode but only allow access in incognito in chrome extension options for reloaded. https://support.google.com/chrome/a/answer/13130396?hl=en

XN-W commented 1 month ago

ok thanks for letting me know. But still this issue occurs in incognito mode as well.

tprouvot commented 1 month ago

@XN-W I can see that the error seems to be from the describe layout request, could you try to run the following GET requests in REST Explore page ?

/services/data/v61.0/sobjects/InsurancePolicyCoverage/describe/layouts and search for the 'Master' developerName

image

/services/data/v61.0/sobjects/InsurancePolicyCoverage/describe/layouts/012000000000000AAA

Can you remove the url of your org from the response and paste the result and screenshot?

image
XN-W commented 1 month ago

@tprouvot I tried GET requests in Workbench REST Explore page. Following are the responses:

  1. For: /services/data/v61.0/sobjects/InsurancePolicyCoverage/describe/layouts tyu1

  2. For: /services/data/v61.0/sobjects/InsurancePolicyCoverage/describe/layouts/012000000000000AAA tyu2

And tried SOQL to find DeveloperName, found nothing. tyu3

Also used RecordTypeId = '012000000000000AAA' to find but no records found. tyu4

Getting same GET responses using SF Inspector Reloaded

tprouvot commented 1 month ago

And you told me that you had the same behavior with another object such as Account?

XN-W commented 1 month ago

And you told me that you had the same behavior with another object such as Account?

Yes, its with all Standard, Custom Objects

tprouvot commented 1 month ago

I think you can update the support case by mentioning that the issue is not related to Inspector but to Salesforce APIs responses. I'll also provide the info internally to the owner of your case.

XN-W commented 1 month ago

I think you can update the support case by mentioning that the issue is not related to Inspector but to Salesforce APIs responses. I'll also provide the info internally to the owner of your case.

Yes definitely, I informed them it is related to APIs. They are like it is not related to Salesforce. Ok will get in touch with them again. Thanks!

tprouvot commented 1 month ago

Hi @XN-W, Since the issue is not related to reloaded I'll close the issue, you can give my name to Salesforce support if they need more info.

tprouvot commented 1 month ago

Hi @XN-W, I've been contacted by the support and the fact they can't access the org makes the debug difficult. I don't know what are the reasons behind, but would you be open to grant the access during a short period of time (half a day ?) If not, could you create a new dev sandbox from prod just to check if the issue still occurs in the new env ? And maybe grant access to support on this less critical environment ?

XN-W commented 1 month ago

Hi @tprouvot,

Yes, we cannot provide prod access due to the privacy policy but I am asking them since day 1 about any alternative if they can suggest like you mentioned to create new DEV sandbox or give them DEV access. No body asked me till date. Do not know, what's going wrong with them? It seems they are not taking it seriously or busy with other cases. Now I asked them by myself regarding DEV sandbox.

And I created new DEV org for them where I found the same issue with all objects. Lets see if it helps them.

tprouvot commented 1 month ago

Hi @XN-W,

Sorry to hear that you are not satisfied with Salesforce support, I may have found out the issue and hope this will give you satisfaction. The support should get back to you soon, on my side I'm trying to reproduce what caused the issue and check if I can fix it.

tprouvot commented 2 weeks ago

Hi @XN-W, I've seen that the first issue was solved but you are facing a new one ? Could you give more details here ?

XN-W commented 2 weeks ago

Hi @tprouvot

yes, first issue have resolved. There is another starts occurring.

Reproduce steps and behavior are same.

here you go:

nw

tprouvot commented 2 weeks ago

@XN-W you are facing this issue as admin?

XN-W commented 2 weeks ago

@tprouvot Its not for admin but for other one (I.... Sales User). Do not want to expose here.