Lotus Notes Error – Table is malformed
I recently migrated rich text content to a new Domino 7 application, using CopyItemToDocument method of NotesItem to copy the rich text item to the corresponding field name in the new form. The information appeared the same in the new application when viewed from a browser. However, the application was designed to allow the information to edited in a Notes client, and it turned out that some of the largest documents could not be opened in the new application. The error message was inconsistent, but was always one of the following:
- Warning: Ignoring portion of document that uses a feature from another version of Notes.
- Table is malformed.
- Memory allocation request exceeded 65000 bytes.
Researching the first error message, I found this technote: http://www-01.ibm.com/support/docview.wss?uid=swg21097112. All of the problem documents did have a large rich text field with many items, as mentioned in reason #4 in the technote, so my first impression was that there was nothing to do except try to recover the unformatted text from the documents.
However, the same content was openable and editable in the original rich application, so it didn’t make sense to me that it wouldn’t open in the new application. I tried fiddling with the new form, thinking the form was the only distinction between the two, but without success.
I did notice, though, that every time I tried and failed to open one of the problem documents, “Unable to load DocLink” was printed to the status bar. That was a bit surprising, because I didn’t see any doclinks in the document when I opened it in read mode in the old application. But I noticed that the problem documents all had $Links items, so I realized I should have copied the $Links item along with the rich text item. When I copied the corresponding $Links item over from the document in the original application, I was able to open the problem documents.
When I opened the problem documents in edit mode, I discovered that the problem documents all had one or more anchor links. The anchor links had accounted for the $Links item. The smaller documents with $Links items could always be opened in Notes, but presumably the anchor wouldn’t work properly until the document was saved in the Notes GUI, so I copied the $Links item over for all documents that had them in the original application.
Viewed 245 times by 100 viewers













