GACK when calling PartnerApi.getUserInfo()

Issue #1786 resolved
Scott Wells repo owner created an issue

I've had two users report this when working against a scratch org. It can manifest in a few different ways because of how this particular SOAP API is called including when trying to execute unit tests. This seems to be a regression in Salesforce Winter '21 and is often (though not always) resolved/worked around by deleting and recreating the scratch org in which the problem is occurring.

Having said that, I'd prefer to take my destiny into my own hands, so I've implemented changes to get the same information via a query to the User SObject instead.

Comments (3)

  1. Scott Wells reporter

    This build changes all calls to PartnerApi.getUserInfo to instead use PartnerApi.query("SELECT ... FROM User WHERE Username = 'connectionUsername' LIMIT 1").

    Download the archive (don't extract it) and install it using Settings/Preferences>Plugins>Install plugin from disk (under the gear drop-down menu).

  2. Log in to comment