When updating a form in an established database I saw this error.
I ran updall and then I restarted the server and it seemed ok.
Apparently this is a bug with Notes 5.0.10.
Upgrade if you have this version. 5.0.11 seems more reliable.