If a record was deleted in Webling, but the sync afterwards failed until a full sync is done, the record is not deleted in Mailchimp (as the fullsync doesn't know about deleted records).
Result
There exists a record in Mailchimp that has the WEBLINGID of the deleted record in Webling and is thus invalid.
Expected Result
The record is also deleted in Mailchimp.
Possible Fix
After full sync: Check if all WEBLINGIDs that are currently in Mailchimp exist in Webling.
If one does not exist:
-
Search for the records email address in Webling.
1.1. If found, get main record and continue with step 2
1.2. Else delete record in Mailchimp
-
If main record has different email address:
2.1. delete record in Mailchimp.
2.2. sync main record