Developer forum

Forum » Development » DW8: Else-section is missing for importing SecondaryUsers

DW8: Else-section is missing for importing SecondaryUsers

Anders Ebdrup
Anders Ebdrup
Reply

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


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Anders,
yes, it will be added in tfs# 43882.
Regards, Dmitrij

 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Dmitrij,

 

When do you expect this fix to be available for download?

 

Best regards, Anders

 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Dmitrij,

 

When do you expect the next hotfix to be released for DW8 as we are awaiting this change?

 

Best regards, Anders

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Anders

The problem regarding #43882 "UserProvider: Fix UpdateUserSecondaryRelationBeforeMoveToMainTable" has now been resolved in Dynamicweb version 8.9.2.18

To upgrade please choose this version from backend or download from here:

http://doc.dynamicweb.com/releases-and-downloads/releases

Let me know if you need any more help regarding this

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum