Try shutting down the app and reopening. If that doesn't work, email devs at support@athinkingape.com
This sounds like a coding error. Developers use arrays to store the data for your buildings. Arrays are data stored in columns or row, so think of your buildings as an excel sheet. If your index is out of range that means the data might be screwed up. It sounds like something is mixed up with your app or account. Take a screenshot and send this to support@athinkingape.com Include your name, game and describe your issue. Attach your screenshots as an email. Restart your app as well, if that doesn't fix anything then wait for support.
Is the deity dagger unenchantable after 8 up to a certain milestone? I've failed 7 times in a row with no change.