Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Mahoney 235 posts 447 karma points
    Mar 03, 2024 @ 21:42
    Chris Mahoney
    0

    GetAllMembers intermittently missing some members and duplicating others

    Hi everyone,

    I'm having a strange issue with MemberService's GetAllMembers() method inside a view (untested outside a view).

    I'm still in development so only have two members on my site at this stage, which I'll call MemberA and MemberB.

    Some of the time, GetAllMembers() returns both MemberA and MemberB, as I'd expect. But other times, it returns MemberA twice and doesn't return MemberB at all.

    GetMembersByMemberType("Member") appears to return MemberA and MemberB 100% of the time, so that seems to be a suitable workaround, but I'd still love to know what's going wrong in the first place.

    Umbraco 13.1.1 running on Windows with SQL Server.

    Any ideas?

Please Sign in or register to post replies

Write your reply to:

Draft