Hi Dynamicweb,
I am trying to import secondary user relations into DW8, but only the first hit for an impersonation user is found, as the else-section is missing is this code section (UpdateUserSecondaryRelationBeforeMoveToMainTable):
if (!processedSecondaryIdUserIdDictionary.ContainsKey(sourceSecondaryUserId)) { existingSecondaryUserId = GetExistingUserOrGroupID(sourceSecondaryUserId); if (existingSecondaryUserId <= 0) { _logger.Log(string.Format("Error importing user Secondary Relation: No secondary user or group found with ID or {0} equal to: '{1}'", searchColumn, sourceSecondaryUserId)); } processedSecondaryIdUserIdDictionary.Add(sourceSecondaryUserId, existingSecondaryUserId); }
Can you please add these lines in DW8:
else
{
existingSecondaryUserId = processedSecondaryIdUserIdDictionary[sourceSecondaryUserId];
}
Best regards, Anders