we recently encountered an issue after migrating to CiviCRM.
In the original system, membership renewals were considered discrete, separate memberships rather than a contiguous one.
When we imported the membership history from the original CRM to CiviCRM, the membership history imported fine, and the old memberships were marked as "Expired". However, due to a scheduled reminder rule ("Send membership renewal notice 7 days after expiry"), we're finding that people who have already renewed a membership and have an active one will still get a reminder notice because one of their expired memberships meets that criteria.
Does anyone have a code snippet to adjust the schedule reminder for memberships to only send a reminder if there are zero ACTIVE memberships on record?