We are having problems with our application that uses the Lotus C API Scheduling functions, for searching busytime.nsf and getting schedules for users.
We have in large followed guide lines from the SCHEDULE sample program that comes with the API.
The application follows these main steps:
-
Create an empty text list data structur (ListAllocate).
-
Add user(s) to the list (ListAddEntry).
-
Retrieve the user’s schedule container (SchRetrieve).
-
Get the first schedule in the container (SchContainer_GetFirstSchedule).
-
Get list of schedules for user (Schedule_ExtractSchedList)
-
Get list of schedules for next user (SchContainer_GetNextSchedule) and then continue continue from 5, until no more schedules exist.
Our application works in our own environment and in one customer installation, but we now have a second customer installation where the application fails every time on the call to SchContainer_GetFirstSchedule in step 4. The call always returns error 1006 : “schedule object doesn’t exist”.
I have tried several users, adding one at a time or several together in the list, it makes no difference. I can access the local free time database through the Notes client and I see that the users exist there and can check their properties.
Please, any help would be greatly appreciated as I have no idea why this error occurs.