ErrorInvalidPropertySet Set action is invalid for property.
Brought to you by:
mguessan
After updating to DavMail 4.8.4.2570 I get the following error message in the log.
[CaldavConnection-39524] davmail - ErrorInvalidPropertySet Set action is invalid for property.
request: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"><soap:Header><t:RequestServerVersion Version="Exchange2013_SP1"/><t:TimeZoneContext><t:TimeZoneDefinition Id="W. Europe Standard Time"/></t:TimeZoneContext></soap:Header><soap:Body><m:UpdateItem ConflictResolution="AutoResolve" SendMeetingInvitationsOrCancellations="SendToNone" MessageDisposition="SaveOnly"><m:ItemChanges><t:ItemChange><t:ItemId Id="REMOVED" ChangeKey="REMOVED"/><t:Updates><t:SetItemField><t:FieldURI FieldURI="calendar:Start"/><t:CalendarItem><t:Start>2018-04-04T10:00:00</t:Start></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="calendar:End"/><t:CalendarItem><t:End>2018-04-04T10:00:00</t:End></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="calendar:StartTimeZone"/><t:CalendarItem><t:StartTimeZone Id="W. Europe Standard Time"></t:StartTimeZone></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="calendar:EndTimeZone"/><t:CalendarItem><t:EndTimeZone Id="W. Europe Standard Time"></t:EndTimeZone></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="calendar:IsAllDayEvent"/><t:CalendarItem><t:IsAllDayEvent>false</t:IsAllDayEvent></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="item:Sensitivity"/><t:Item><t:Sensitivity>Normal</t:Sensitivity></t:Item></t:SetItemField><t:DeleteItemField><t:ExtendedFieldURI PropertyTag="0x1000" PropertyType="String"/></t:DeleteItemField><t:DeleteItemField><t:ExtendedFieldURI PropertyTag="0x37" PropertyType="String"/></t:DeleteItemField><t:DeleteItemField><t:FieldURI FieldURI="calendar:Location"/></t:DeleteItemField><t:SetItemField><t:FieldURI FieldURI="calendar:RequiredAttendees"/><t:CalendarItem><t:RequiredAttendees></t:RequiredAttendees></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="calendar:OptionalAttendees"/><t:CalendarItem><t:OptionalAttendees></t:OptionalAttendees></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="item:ReminderIsSet"/><t:Item><t:ReminderIsSet>true</t:ReminderIsSet></t:Item></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="item:ReminderMinutesBeforeStart"/><t:Item><t:ReminderMinutesBeforeStart>15</t:ReminderMinutesBeforeStart></t:Item></t:SetItemField><t:SetItemField><t:ExtendedFieldURI DistinguishedPropertySetId="PublicStrings" PropertyName="xmozlastack" PropertyType="String"/><t:Item><t:ExtendedProperty><t:ExtendedFieldURI DistinguishedPropertySetId="PublicStrings" PropertyName="xmozlastack" PropertyType="String"/><t:Value>20180410T072725Z</t:Value></t:ExtendedProperty></t:Item></t:SetItemField></t:Updates></t:ItemChange></m:ItemChanges></m:UpdateItem></soap:Body></soap:Envelope>
davmail.exchange.ews.EWSException: ErrorInvalidPropertySet Set action is invalid for property.
request: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"><soap:Header><t:RequestServerVersion Version="Exchange2013_SP1"/><t:TimeZoneContext><t:TimeZoneDefinition Id="W. Europe Standard Time"/></t:TimeZoneContext></soap:Header><soap:Body><m:UpdateItem ConflictResolution="AutoResolve" SendMeetingInvitationsOrCancellations="SendToNone" MessageDisposition="SaveOnly"><m:ItemChanges><t:ItemChange><t:ItemId Id="REMOVED" ChangeKey="REMOVED"/><t:Updates><t:SetItemField><t:FieldURI FieldURI="calendar:Start"/><t:CalendarItem><t:Start>2018-04-04T10:00:00</t:Start></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="calendar:End"/><t:CalendarItem><t:End>2018-04-04T10:00:00</t:End></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="calendar:StartTimeZone"/><t:CalendarItem><t:StartTimeZone Id="W. Europe Standard Time"></t:StartTimeZone></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="calendar:EndTimeZone"/><t:CalendarItem><t:EndTimeZone Id="W. Europe Standard Time"></t:EndTimeZone></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="calendar:IsAllDayEvent"/><t:CalendarItem><t:IsAllDayEvent>false</t:IsAllDayEvent></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="item:Sensitivity"/><t:Item><t:Sensitivity>Normal</t:Sensitivity></t:Item></t:SetItemField><t:DeleteItemField><t:ExtendedFieldURI PropertyTag="0x1000" PropertyType="String"/></t:DeleteItemField><t:DeleteItemField><t:ExtendedFieldURI PropertyTag="0x37" PropertyType="String"/></t:DeleteItemField><t:DeleteItemField><t:FieldURI FieldURI="calendar:Location"/></t:DeleteItemField><t:SetItemField><t:FieldURI FieldURI="calendar:RequiredAttendees"/><t:CalendarItem><t:RequiredAttendees></t:RequiredAttendees></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="calendar:OptionalAttendees"/><t:CalendarItem><t:OptionalAttendees></t:OptionalAttendees></t:CalendarItem></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="item:ReminderIsSet"/><t:Item><t:ReminderIsSet>true</t:ReminderIsSet></t:Item></t:SetItemField><t:SetItemField><t:FieldURI FieldURI="item:ReminderMinutesBeforeStart"/><t:Item><t:ReminderMinutesBeforeStart>15</t:ReminderMinutesBeforeStart></t:Item></t:SetItemField><t:SetItemField><t:ExtendedFieldURI DistinguishedPropertySetId="PublicStrings" PropertyName="xmozlastack" PropertyType="String"/><t:Item><t:ExtendedProperty><t:ExtendedFieldURI DistinguishedPropertySetId="PublicStrings" PropertyName="xmozlastack" PropertyType="String"/><t:Value>20180410T072725Z</t:Value></t:ExtendedProperty></t:Item></t:SetItemField></t:Updates></t:ItemChange></m:ItemChanges></m:UpdateItem></soap:Body></soap:Envelope>
at davmail.exchange.ews.EWSMethod.checkSuccess(EWSMethod.java:754)
at davmail.exchange.ews.EwsExchangeSession.internalExecuteMethod(EwsExchangeSession.java:2865)
at davmail.exchange.ews.EwsExchangeSession.executeMethod(EwsExchangeSession.java:2832)
at davmail.exchange.ews.EwsExchangeSession$Event.createOrUpdate(EwsExchangeSession.java:2060)
at davmail.exchange.ews.EwsExchangeSession.internalCreateOrUpdateEvent(EwsExchangeSession.java:2596)
at davmail.exchange.ExchangeSession.createOrUpdateItem(ExchangeSession.java:3158)
at davmail.caldav.CaldavConnection.handleFolderOrItem(CaldavConnection.java:290)
at davmail.caldav.CaldavConnection.handleRequest(CaldavConnection.java:228)
at davmail.caldav.CaldavConnection.run(CaldavConnection.java:171)
Note: I censored two fields in the XML by replacing the values with "REMOVED". If you need them I can send them to you privately.
I'm using Thunderbird 52.7.0 with Lightning 5.4.
Nothing obviously wrong in your logs, working fine here
=>maybe an older version of Exchange does not accept reminder update ?
=> which Exchange version do you have ?
Anyway, you can revert to old delete/add implementation with :
davmail.caldavAutoSchedule=false
Similar to:
https://stackoverflow.com/questions/31240837/exchange-api-returns-set-action-is-invalid-for-property-on-update
Would need to check full EWS response with WIRE debug level set to DEBUG to understand which field update is rejected.
Please also make sure you check with 4.8.5
Should be fixed in trunk: changed multivalued field update, send DeleteItemField instead of SetItemField with an empty value when field has no value
Released in 4.8.6