Where are you trying to create this namespace? There was an issue in one point release where this error popped up sometimes, but that has been fixed.
The tutorial you’ve been using is a bit older, and right now we have workfows. With a workflow we can now easily loop through donations and store the total. There is more info on workflows at Workflows :: Corteza Docs