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
185 stars 58 forks source link

[beta][data-export] Tooling API: UNEXPECTED EXCEPTION:TypeError: Cannot read properties of undefined (reading 'length') #474

Closed Wintermute1974 closed 2 months ago

Wintermute1974 commented 2 months ago

Make sure to read the troubleshooting section before creating an issue

Describe the bug The Tooling API does not return any records. Instead, it returns the error message UNEXPECTED EXCEPTION:TypeError: Cannot read properties of undefined (reading 'length')

To Reproduce Steps to reproduce the behavior:

  1. Open the Data Export screen.
  2. Select the Tooling API
  3. Enter the following SOQL Query:
    SELECT Id
    FROM ExternalString 
    LIMIT 5
  4. Press the "Run Export" button.

Expected behavior Five Custom Labels should appear in the search results.

Actual behavior This error message is returned: UNEXPECTED EXCEPTION:TypeError: Cannot read properties of undefined (reading 'length')

Screenshots The same query works fine in Workbench: image

Desktop (please complete the following information):

Additional context This worked the last time I needed to use the Tooling API. That was probably three weeks ago.

tprouvot commented 2 months ago

Hi @Wintermute1974, I am reproducing the error and it seems that comes from the recent updates concerning the SOSL and GraphQL new languages support. I'll fix it ASAP and update the beta version, should be available in the begining of next week. Until this moment could you use the main version ?

Wintermute1974 commented 2 months ago

Hi @tprouvot I will use the main version for now. Thank you for the quick reply.

tprouvot commented 2 months ago

@Wintermute1974 thank you for using the beta version and highlighting this bug !

image

tprouvot commented 2 months ago

Fixed on releaseCandidate, will be added to beta soon

https://github.com/tprouvot/Salesforce-Inspector-reloaded/commit/ef48d1199d13dc0bf651926373bb8847b0cedc3a

Eiton commented 3 weeks ago

Same error message is returned when you select "Add deleted records?".

tprouvot commented 3 weeks ago

Same error message is returned when you select "Add deleted records?".

Hi @Eiton , This issue has been raised in the #538 and I provided a workaround