Hi Cameron,
The problem is that the constraint is in the model evolution.
If you refactor your model, the problem will go away. However, if you
need to be able to update an existing system/database that is created
using this model, refactoring is not an option.
In this case you can always open the model, in for example notepad,
and remove your constraint from the evolution.
1. Make a back-up-copy of your model
2. Open the model in Notepad
3. Search for your constraint
4. You will find something like <rise:check>Building.Capacity >
Occupancy</rise:check>
5. Change it to <rise:check></rise:check>
6. Save the model
You should now be able to generate code.
Best regards,
Håkan Olsen