When adding a function (with no sort order) to a technical system with more than one function all of the items get error 500.