Hey!
I am having a problem with the Data Integration, default import functionality. I'm trying to import a CSV with user and group information into DW. I'm using the CSV provider for the source and the User Provider for the destination. The problem I have is that I get multiple groups with the same name, even when I'm using a test CSV where I only have one row. I'm trying to use the name from one column in the CSV as a new user group which I want to add as a child under a default user group. My job looks like the picture in the attachment.
I've bound the CSV to the AccessUserGroup table, I've set the key on the AccessGroupGroupName and then I map the column Account Name to the AccessGroupGroupName. I added a row to map "None" to AccessGroupParentGroupName where I filed in the constant "Companies". The key is irrelevant and is one of the exercises I tried to get it working. The companies will get added under the user group companies, but it gets created multiple times.
DW Version
I'm using DW 8.9.1.6
Context
Our configuration for the users is that every user has some groups they are in, one of which is the company they work for. We create a user group for every company of the users. When I'm importing the users I want to create the companies too, I don't want to create those companies manually. The CSV contains one column for the company name and then all other columns contain user details.
Expected behaviour
I expected the user provider to add only 1 usergroup with the same name when I set the key on the table correctly (in this case AccessGroupGroupName).
What I have tried so far
I tried some things already of course, which helped me pinpoint the issue. But I haven't found a solution yet.
- I tried setting the key (at number 1 in the picture) to the AccessGroupGroupName, I've also tried to set it to the AccessGroupGroupName and AccessGroupParentGroupName, but nothing seemed to help.
- I've removed an empty row from the csv file
- I've added a row in the CSV file with the same company, the result was that the company was added thrice.
- I've added a column in the CSV called key, which I mapped to AccessGroupExternalID and then set that one as the key
- I've tried setting the destination group (number 3 in the picture) to companies and not setting the AccessGroupParentGroupName, hoping the group would be added there. But it added the group in the root (only one though, so it seems to be connected to the parent)
- I've tried setting the User Key Field to something else, like AccessUserName, but no group keys seem to be available here, so I didn't think that would help much. I've also tried setting it to none, thinking that perhaps it would override the key setting in the table mapping row (at number 1).
Thanks in advance for any help you can offer.
Kind regards,
Manon Wekking