Hi,I have been using the Lotus C++ API 2.4 for retrieving the Contacts and Calendar entry details from Lotus Notes 6.5.1 Client. I am getting a strange error message when I try to retrieve a To Do entry from Calendar using ‘LNCalendar - GetEntries’ API.
In To Do view, a To Do entry can be created by either selecting “New To Do Item” button or by selecting “Ctrl-Click here to add a new document”. If former method is used, the API ‘LNCalendar - GetEntries’ works fine, but if latter method is used, an error message “Incorrect item type specified” is coming with the API.
I am not sure if this error message for To Do entries is a known issue or a bug.
Subject: Getting error message with ‘LNCalendar - GetEntries’ API
i guess that’s an error in the templates. some of the fields c++ apis function you call is relying on specific item types for certain fields.
but you can for sure find out which items type is wrong by comparing two documents being created by different ways you describe.
to fix it you could try to “repair” those documents before using calender functions or change template and hope its fixed in a later release (report it).
Subject: RE: Getting error message with ‘LNCalendar - GetEntries’ API
HiThanks for suggestion.
The template used is default R6 mail template (mail6.ntf).
I compared the item type of relevant fields - CalendarDateTime, StartDate, STARTDATETIME, EndDate, EndDateTime, CalendarDateTime - of the two documents created in the two mentioned ways, but the types of the fields are same in both documents.