Activate one dipole

There are obviously some errors in your data structures. Maybe you are not familiar enough with how the Brainstorm database works. If you are familiar with Brainstorm (including scripting), reusing Arnd's scripts should be rather straightforward.
Following ALL the Brainstorm introduction tutorials with the example dataset provided would help you a lot... Without this prerequisite, we might not be able to help you much further with this forum.

@ArndMeiser @martinbleichner
It appears that this user did not manage to reuse the scripts provided on FigShare.
For training purposes and strict reproducibility of your findings, maybe it could be good to add a short document with guidelines on how to use these scripts, that beginners could follow step by step (Create a new protocols with these properties, Create a new subject, download this example dataset, link it to the database, etc).
What do you think?