Skip to main content

Return to TX Community

Liaison

Resolving Common Errors in TargetX Communities

Issue/Error

Resolution

Error:  TX_MakeUniqueNickname: execution of BeforeInsert caused by: System.QueryException: Non-selective query against large object type (more than 200000 rows). Consider an indexed filter or contact salesforce.com about custom indexing. Even if a field is indexed a filter might still not be selective when: 1. The filter value includes null (for instance binding with a list that contains null) 2. Data skew exists whereby the number of matching rows is very large (for instance, filtering for a particular foreign key value that occurs many times) Failing Query: SELECT Id, CommunityNickname FROM User WHERE CommunityNickname = :tmpVar1 Current Apex position:TX_UniqueNicknameHelper [8,1] Apex stack:Trigger.TX_MakeUniqueNickname: line 6, column 1 Class.TX_UniqueNicknameHelper.getMatchingUsers: line 8, column 1 Trigger.TX_MakeUniqueNickname: line 6, column 1

Cause: This error occurs when your Salesforce Org exceeds 200,000 user records.

Resolution: Submit a case to Salesforce Support and request the Nickname (API: CommunityNickname) field on User be indexed. If Salesforce Support asks for the query that is failing, provide the following:

SELECT Id, CommunityNickname FROM User WHERE CommunityNickname IN :nicknames

Applicant record has the wrong email address

  1. Go to the Contact record and select Disable Community User from the picklist:

disable option

  1. Navigate to Setup and search for Users.
  2. Click Edit.
  3. Update the Email on the User record.
  4. Save your changes.
  5. Go back to the Contact record and select Enable Community User from the picklist:

enable option

Note: The student will need to update their password after this process. 

Code Coverage errors for Communities See Code Coverage errors.
Community Login page doesn’t present an error when an invalid username or password is entered Error: Your login attempt has failed. Make sure the username and password are correct.

Resolution:

1. Navigate to Setup and search for Visualforce Components.
2. Click on the TX_SiteLogin component.
3. Select Edit.
4. Copy the existing code to notepad as a backup.
5. Replace the code with the code from this file.
6. Re-apply any customizations you may have made to the login page text.
7. Save your changes.
Nickname isn't unique See Ensuring the nickname created is unique.

Communities reset password link goes in a loop

Recommended workarounds: 
    
If an Outlook user is experiencing this issue, ask them to perform the following [1]:

  1. Open Outlook.com in their browser.
  2. Go to Settings | Options.
  3. Go to Mail | Layout | Link preview.
  4. Disable the Preview links in email option, and click on Save.
  5. Go to the community site and perform a password reset.
  6. After the email is received, open it and click on the link. It should work correctly.
Please note: Users using other email clients or third-party scanners (including Outlook if the above solution does not work) will need to reach out to the provider of the software to address the issue as we are not able to provide support for third-party software. 

Option 2: Clear the Cache and Cookies from your browser.

[1] “Knowledge Article 000269112”. 

'Log in to Community as User' button doesn't show up for certain users
  1. Associate a Contact to a Related User.
  2. Navigate to Setup search for Digital Experiences (formerly All Communities), and click All Sites.
  3. Select Workspaces for the Community to which the user needs access.
  4. Click Administration, then Members.
  5. Under Available Profiles, select the profile assigned to your User and click the Add button.
  6. Save your changes.

New users can't create a new password

When the Forgot Password page is looping, this is typically caused by email clients (specifically Outlook, Yahoo, and occasionally Gmail), which preview the forgot password link and, therefore cause it to expire before the student can use it. Users can go to the Settings of their email client and ensure that Preview Links is turned off.

You can also update the Password Policies setting in the User Profile:

  1. Navigate to the Profile of the user experiencing the problem.
  2. Scroll down to the Password Policies section of the profile.
  3. You'll see an option labeled Don't Immediately Expire links in forgot password emails. 
  4. Check this box.
  5. Save your changes.
Community User is related to the wrong Contact record See Correcting a Community User that is related to the wrong Contact record.

 

For details on viewing Console errors, see Troubleshooting using Console Mode.

  • Was this article helpful?