Contact record may not be available to a portal user after merging two contacts
Last updated 2019-01-05 ·Reference W-5066497 ·Reported By 1 users
After merging two Contacts (Contact A - customer portal user and Contact B set as Master contact), the newly created Contact is not available to the portal user in SOQL query on Contact for an hour or two. Since it is not available, the code accessing the list of contacts results in an error. The issue resolves itself after couple hours.
This is happening because the UserInfo cache is not getting refreshed after contact merge. In the UserInfo cache, portal user id is still mapped to old contact A id.
1. Create two contacts - Contact A - customer portal user and Contact B
2. Merge two contacts using Contact B as Master contact
3. In community set up a page such that it makes a SOQL query on Contact table filtering on the Master Contact B
4. Login as portal user into the community, and access the page running the SOQL query
SOQL query doesn't return results for the query as the UserInfo table still refers to the old Contact id.
SOQL query should result in the new Master Contact record
To refresh the UserInfo cache, go to the portal user record. Edit any field on it record and save it. This will invalidate the cache and will start referencing the new Contact record.
Reported By (1)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.