- attached IlluminatedCloud2.zip
GACK when calling PartnerApi.getUserInfo()
Issue #1786
resolved
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)
-
reporter -
reporter - changed status to resolved
Workaround delivered in 2.1.5.4.
-
reporter - changed component to Apex Unit Testing
- Log in to comment
This build changes all calls to
PartnerApi.getUserInfo
to instead usePartnerApi.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).