quintel / etmoses

Online decision support tool to create local energy situations for neighbourhoods, cities and regions with a time resolution of 15 minutes created and maintained by Quintel – Not maintained
https://moses.energytransitionmodel.com
MIT License
11 stars 3 forks source link

[Airbrake] [Staging] undefined method `profile_required?' for nil:NilClass #1375

Closed dennisquintel closed 8 years ago

dennisquintel commented 8 years ago

Airbrake error: #4215 Airbrake project: ETMoses

Error type: NoMethodError Error message: undefined methodprofile_required?' for nil:NilClass **Where:**testing_grounds#data` Occurred at: Aug 17, 2016 07:57:45 UTC First seen at: Aug 17, 2016 07:57:45 UTC Occurrences: 1 (1 since last deploy on Aug 15, 2016 08:34:57 UTC)

URL: https://beta-moses.energytransitionmodel.com/testing_grounds/271/data.json File: [PROJECT_ROOT]/app/models/installed_technology.rb

Backtrace:

[PROJECT_ROOT]/app/models/installed_technology.rb:289:in valid?
[PROJECT_ROOT]/app/services/testing_ground/calculator/validator.rb:14:in reject
[PROJECT_ROOT]/app/services/testing_ground/calculator/validator.rb:14:in invalid_technologies
[PROJECT_ROOT]/app/services/testing_ground/calculator/validator.rb:4:in validation_error
grdw commented 8 years ago

The households_flexibility_p2h_electricity can't be found. It was removed in 522ceca32f4256f64d838256f765ba997f272dcf but there was no migration done for old LES's or?

grdw commented 8 years ago

Including @antw

antw commented 8 years ago

There was a migration. 😕

I'll take a look at the LES and see if I can find out why it was missed.

grdw commented 8 years ago

Hmm. It seems to be a pretty old LES and it's yours 😅 so I don't know. Maybe the P2H is not attached to a buffer?

antw commented 8 years ago

Maybe the P2H is not attached to a buffer?

That's what it is, good catch! :+1: