0 How set Person and Family Guid in SampleData xml used for importing data? 2 Ken Roach posted 10 Years Ago If the SampleData xml file can be used as a mechanism for importing data, what should the Family and Person Guid's be set to in the SampleData.xml file? David has previously replied to this question - "If your [import] data is in SQL you can use NEWID() to create a new Guid for each row of data. That's not particulary user-friendly, so we could add some code to that SampleData block to generate new Guid's on the fly. I'll create an issue for that." This is a follow up question: I'm now preparing my own xml file for a trial import, so I'm just wondering how this is going to work? Should I leave the guid blank in my xml file? Has this issue been actioned so that we can trial importing our own SampleData files? (I couldn't see the issue in GitHub.)
Ken Roach 10 years ago That would be great, David! I haven't tried to import any of the sample data yet. I started to play with the sample data import until Nick's comment. Since then I've started to look at doing it directly into the database using SQL. (Would rather not go there, though.)Our requirements are simple: import the standard family attributes, custom family attributes, standard person attributes, and custom person attributes. We would be redeveloping all our other group structure from scratch. (Which is why the ability to 'allocate more than one person at a time to a group' would be really helpful.) And the relationship data we could rebuild manually.I have the skills to create a suitably structured xml file, but to make this even easier for others following, it would be great to be able to import from one flat csv file containing everything, or even better, two csv files - one for person, the other for family, where the first row of the csv files contain the xml mapping attribute names, and the two files contain a linking family ID which could be dropped after the import. This would remove the need for any skills other than Excel skills in preparing data for simple imports.I could write a doc on how to prepare those files, and make sure that the codes used (e.g. Title, Status etc) are already prepared in Rock prior to the import, if this helped.
David Stevens 10 years ago Ok, I'll run that by the other guys and see what a CSV import would look like. I think multiple files would get complicated quickly... One CSV with family ID, family name, individual properties and any custom attributes would work though?