Keith Smillie had a question about the above error message, which occurred when he tried to add an "on behalf of" name to an agent by just creating a $OnBehalfOf text item.
The "On Behalf Of" value is stored in the agent design note item $OnBehalfOf, and is a text value. However, it is not valid to store a value in this item unless the "ODS version" of the design element is such as to support this feature. If you refer to the C API guide, the relevant structure is ODS_ASSISTSTRUCT, whose wVersion element must be 2 or higher. This binary structure is stored in the $AssistInfo item of the agent design note. At this time, there are no differences between the ODS formats besides this version number, but consult the latest API documentation to make certain.
There are a few different ways to fix this problem:
- Edit the agent in Domino Designer.
- Use LotusScript or Java to delete the $OnBehalfOf item from the agent note (You will need a NotesNoteCollection to get the note ID of the agent so that you can open it as a NotesDocument).
- Use the C API for Notes to adjust the version number in the $AssistInfo item.
- Export the agent to DXL, modify the DXL, and re-import it to update the agent.
Andre Guirard | 12 May 2008 05:03:00 AM ET | Home, Plymouth, MN, USA | Comments (0)

