ews-java-api icon indicating copy to clipboard operation
ews-java-api copied to clipboard

Set action is invalid for property

Open ekoch opened this issue 9 years ago • 1 comments

I tried to add an attendee to an Appointment as explained in the wiki, by execute the following code:

PropertySet propSet = new PropertySet(BasePropertySet.FirstClassProperties); propSet.add(AppointmentSchema.OptionalAttendees); propSet.add(AppointmentSchema.RequiredAttendees); Appointment appointment = Appointment.bind(service, new ItemId(uniqueId), propSet); appointment.getRequiredAttendees().add("[email protected]"); appointment.update(ConflictResolutionMode.AlwaysOverwrite, SendInvitationsOrCancellationsMode.SendOnlyToAll);

And I get the following error:

microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: Set action is invalid for property. at microsoft.exchange.webservices.data.core.response.ServiceResponse.internalThrowIfNecessary(ServiceResponse.java:278) at microsoft.exchange.webservices.data.core.response.ServiceResponse.throwIfNecessary(ServiceResponse.java:267) at microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:165) at microsoft.exchange.webservices.data.core.ExchangeService.internalUpdateItems(ExchangeService.java:691) at microsoft.exchange.webservices.data.core.ExchangeService.updateItem(ExchangeService.java:762) at microsoft.exchange.webservices.data.core.service.item.Item.internalUpdate(Item.java:279) at microsoft.exchange.webservices.data.core.service.item.Appointment.update(Appointment.java:421)

Any idea why this is failing?

ekoch avatar Mar 29 '16 19:03 ekoch

Have you solved the problem?

shibd avatar May 23 '19 02:05 shibd