Question

Photo of Frank Grand

0

Trouble with Importing Sample Data?

Has anyone had trouble importing the sample data?  Once we installed, I've spent a few days just playing with entering all new data......now I'm looking at investigating the available option in more depth, so I was going to look at the sample data to see what I hadn't looked at yet.....anyway.......so I do have people/groups/group types that I've added to the database, and here is the error I'm getting when I try to load the sample data (sorry can't figure out how to paste in an image):

Oops! That wasn't supposed to happen. The error was:
Object reference not set to an instance of an object.

at RockWeb.Blocks.Examples.SampleData.AddFamilyAttendance(Group family, XElement elemFamily)
at RockWeb.Blocks.Examples.SampleData.AddFamilies(XElement elemFamilies)
at RockWeb.Blocks.Examples.SampleData.<>c__DisplayClass1. b__0()
at Rock.Data.RockTransactionScope.WrapTransaction(Action action)
at RockWeb.Blocks.Examples.SampleData.bbtnLoadData_Click(Object sender, EventArgs e)

 

Anyone else had this problem?

  • Photo of Frank Grand

    1

    Update........I installed the latest update.....then I imported the data successfully.

  • Photo of Jim Michael

    0

    I cannot duplicate this. I imported the sample data (Admin Tools | Power Tools | Sample Data on the 10th and it worked fine. I just tried it again and got no error. I *did* see a hiccup on the Rock site (502 errors) about 30-45 min before posting this, so maybe it was a temporary glitch occurring right when you tried it. Have you tried again since?

  • Photo of Frank Grand

    0

    Yes, tried again and I get the same error

  • Photo of Jim Michael

    0

    Interesting. I would then guess that something has changed in your config (from playing around with it) that the Rock dev did not anticipate or account for and the import is barfing. 

  • Photo of Nick Airdo

    0

    I'm aware of certain cases where, if you delete certain data that ships with Rock (schedules, certain check-in groups, and locations), the SampleData will fail.  I'm going to open an issue for this and try correct at least one of them today for the next release, but other potential problems will remain until I re-factor more of that code.