Forum Discussion

Jona_Titus's avatar
Jona_Titus
Copper Contributor
Aug 02, 2023

Issue with Profiles Web Part in Modern SharePoint - Multiple Duplicate "Cards"

I am using Office 365 and a modern Sharepoint site and have encountered the following problems with the Profiles web part and using the large cards. I do have approximately 289 profiles on the page.

 

  • When I add a person to the web part, after I published, it sometimes displays multiple duplicate "cards" of the same individual, even though I only added them once.
  • When I go to edit and remove the duplicate
    • sometimes I can, other times it removes other cards I did not select
    • sometimes it will add additional cards for a person

ASK: Is anyone else seeing this behavior? Is there a limit to the number of profile cards you should use in one web part? 

2 Replies

  • SvenSieverding's avatar
    SvenSieverding
    Bronze Contributor

    Hi Jona_Titus ,

    As far as i know there is no limit on the "Profiles Webpart", but this behavior sounds like a performance issue in the webpart.

    If you keep experiencing these issues you could think about replacing that webpart (I think, it was never meant to display so many profiles).

    You could create a new list in your site containing these columns

    TypeInternal Name
    Single line of textJobTitle
    PersonUser
    PicturePicture
    HyperlinkLinkedIn
    HyperlinkTwitter


    then create a new view and apply the template from this sample

    https://github.com/pnp/list-formatting/tree/master/view-samples/profile-card


    To do so, select "Format current view" from the bottom of the view selector

    Click "Advanced Mode" and paste the contents from "profile-card.json" in the editor

     




    Now, add a list view webpart to your page and configure it to use that view. 

    The webpart will now display all entries from your list, but render them as profile cards. 

    The list also makes the handling of a large number of persons much easier.

    Best Regards,
    Sven

  • Lalit Mohan's avatar
    Lalit Mohan
    Iron Contributor

    Hi Jona_Titus 

    The behavior you are experiencing with the Profiles web part in modern SharePoint, where it displays multiple duplicate cards of the same individual and exhibits inconsistent behavior when editing or removing cards, could be due to several factors. Let's address each concern:

    1. Duplicate Cards: The issue of duplicate cards appearing after adding a person to the web part may arise due to how the web part is fetching and displaying user data. It's possible that there could be a caching problem or a delay in the synchronization of user profiles. This can cause the same profile to be fetched multiple times, resulting in duplicate cards.

    2. Inconsistent Editing and Removal: The problem with removing duplicates and sometimes unintentionally removing other cards or adding additional cards might be related to the web part's handling of the edit and save actions. It could be a bug in the web part's functionality or an issue with how the web part interacts with the SharePoint data.

    3. Limit on Profile Cards: While there isn't a specific documented limit on the number of profile cards you can use in one web part, having a large number of profiles (289 in your case) can potentially cause performance issues. The more profiles the web part has to load and display, the higher the chance of encountering issues with data retrieval, rendering, or processing.

    Best Steps to Resolve the Issue:

    1. Check for Updates: Ensure that your SharePoint environment is up to date with the latest patches and updates. Sometimes, Microsoft releases fixes for known issues in updates.

    2. Review SharePoint Service Health: Check the Office 365 Service Health Dashboard to see if there are any known issues or outages affecting SharePoint or user profiles.

    3. Limit Profile Cards: Consider reducing the number of profiles displayed in the web part. You might try using pagination or filtering options to limit the number of cards per page.

    4. Test in Different Browsers: Verify if the issue is browser-specific. Test the web part behavior in different browsers to see if the problem persists.

    5. Contact Microsoft Support: If the issue persists and affects your productivity, reach out to Microsoft Support for further investigation. They can analyze your specific SharePoint environment and help identify the root cause.

    6. Alternative Solutions: In the meantime, consider using other web parts or widgets to display user profiles, or explore third-party SharePoint add-ins that offer profile display functionality.

    7. Backup and Restore: Before making significant changes to the web part or SharePoint site, take a backup so that you can restore the previous configuration if necessary.

    Remember to document the issues you're encountering and any steps taken to resolve them. This information will be helpful when communicating with Microsoft Support or your organization's SharePoint administrators.

    Overall, it's essential to stay up-to-date with SharePoint updates, and if the issue is persistent, engage with the support channels provided by Microsoft to get assistance in resolving the problem.

Resources